using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Tango.MachineStudio.UI.ViewModels;
using Tango.TFS;
namespace Tango.MachineStudio.UI.Views
{
///
/// Interaction logic for ReportIssueView.xaml
///
public partial class ReportIssueView : UserControl
{
private ReportIssueViewVM _vm;
public ReportIssueView()
{
InitializeComponent();
this.Loaded += ReportIssueView_Loaded;
this.DataContextChanged += ReportIssueView_DataContextChanged;
}
private void ReportIssueView_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
{
_vm = this.DataContext as ReportIssueViewVM;
}
private void ReportIssueView_Loaded(object sender, RoutedEventArgs e)
{
txt_title.Focus();
}
private void TreeView_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs