public ToolWindowControl(ProjectCommandTestingModel model)
 {
     Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread();
     _model = model;
     InitializeComponent();
     Arguments.DataContext   = _model;
     ProjectName.DataContext = _model;
     Affinity.DataContext    = _model;
     Affinity.ItemsSource    = Enum.GetValues(typeof(ThreadAffinity)).Cast <ThreadAffinity>();
     Affinity.SelectedItem   = ThreadAffinity.SYNC_JTF_RUN;
 }
예제 #2
0
 public CommandInvokingWindow(ProjectCommandTestingModel state) : base()
 {
     Caption            = Title;
     BitmapImageMoniker = KnownMonikers.ImageIcon;
     Content            = new ToolWindowControl(state);
 }