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; }
public CommandInvokingWindow(ProjectCommandTestingModel state) : base() { Caption = Title; BitmapImageMoniker = KnownMonikers.ImageIcon; Content = new ToolWindowControl(state); }