예제 #1
0
        private void ShowBenchmarkWizardDialog(object param)
        {
            ApplicationViewModelWrapper appvm = (ApplicationViewModelWrapper)DataContext;
            var experimentToBeBenchmarked     = appvm.ExperimentDocumentWrapper[0] as ExperimentViewModel;

            if (experimentToBeBenchmarked != null)
            {
                //start wizard - load benchmarks from benchmarks directory, initiates wizard state
                appvm.BenchmarkWizardViewModel.StartWizard((Experiment)experimentToBeBenchmarked.TopLevel);

                //create wizard with data contex of benchmark wizard view model
                BenchmarkWizardDialog box = new BenchmarkWizardDialog(this);
                box.DataContext = appvm.BenchmarkWizardViewModel;
                box.ShowDialog();
            }
        }
예제 #2
0
        private static void OnShowProcessAreaChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            BenchmarkWizardDialog wizard = (BenchmarkWizardDialog)sender;
            bool?value = args.NewValue as bool?;

            if (value.HasValue && wizard.m_isShowingProcessArea != value.Value)
            {
                wizard.m_isShowingProcessArea = value.Value;
                if (value.Value)
                {
                    wizard.m_oldLeft   = wizard.Left;
                    wizard.m_oldTop    = wizard.Top;
                    wizard.m_oldHeight = 75;
                    wizard.m_oldWidth  = 195;

                    wizard.AnimateToSize(wizard.Owner.Left, wizard.Owner.Top, 0, 0);
                }
                else
                {
                    wizard.AnimateToSize(wizard.m_oldLeft, wizard.m_oldTop, wizard.m_oldHeight, wizard.m_oldWidth);
                }
            }
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.BenchmarkWizardRoot = ((TraceLab.UI.WPF.Views.BenchmarkWizardDialog)(target));
     return;
     case 3:
     
     #line 316 "..\..\..\Views\BenchmarkWizardDialog.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ExecuteOpenComponentGraphCommand);
     
     #line default
     #line hidden
     
     #line 316 "..\..\..\Views\BenchmarkWizardDialog.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanExecuteOpenComponentGraphCommand);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 319 "..\..\..\Views\BenchmarkWizardDialog.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ExecuteToggleNodeInfo);
     
     #line default
     #line hidden
     return;
     case 5:
     this.keyBorderColumnDefinition = ((System.Windows.Controls.ColumnDefinition)(target));
     return;
     case 6:
     this.headerRowDefinition = ((System.Windows.Controls.RowDefinition)(target));
     return;
     case 7:
     this.header = ((System.Windows.Controls.Grid)(target));
     return;
     case 8:
     this.imageIcon = ((System.Windows.Controls.Image)(target));
     return;
     case 9:
     this.headingLabel = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 10:
     this.summaryLabel = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 11:
     this.keyBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 12:
     this.content = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 13:
     this.executeBenchmarkProgress = ((TraceLab.UI.WPF.Controls.ProgressControl)(target));
     return;
     case 14:
     this.buttonBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 15:
     this.backButton = ((System.Windows.Controls.Button)(target));
     return;
     case 16:
     this.nextButton = ((System.Windows.Controls.Button)(target));
     return;
     case 17:
     this.processButton = ((System.Windows.Controls.Button)(target));
     return;
     case 18:
     this.cancelButton = ((System.Windows.Controls.Button)(target));
     
     #line 452 "..\..\..\Views\BenchmarkWizardDialog.xaml"
     this.cancelButton.Click += new System.Windows.RoutedEventHandler(this.cancelButton_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
        private void ShowBenchmarkWizardDialog(object param)
        {
            ApplicationViewModelWrapper appvm = (ApplicationViewModelWrapper)DataContext;
            var experimentToBeBenchmarked = appvm.ExperimentDocumentWrapper[0] as ExperimentViewModel;

            if (experimentToBeBenchmarked != null)
            {
                //start wizard - load benchmarks from benchmarks directory, initiates wizard state
                appvm.BenchmarkWizardViewModel.StartWizard((Experiment)experimentToBeBenchmarked.TopLevel);

                //create wizard with data contex of benchmark wizard view model
                BenchmarkWizardDialog box = new BenchmarkWizardDialog(this);
                box.DataContext = appvm.BenchmarkWizardViewModel;
                box.ShowDialog();
            }
        }
예제 #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.BenchmarkWizardRoot = ((TraceLab.UI.WPF.Views.BenchmarkWizardDialog)(target));
                return;

            case 3:

            #line 316 "..\..\..\Views\BenchmarkWizardDialog.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ExecuteOpenComponentGraphCommand);

            #line default
            #line hidden

            #line 316 "..\..\..\Views\BenchmarkWizardDialog.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanExecuteOpenComponentGraphCommand);

            #line default
            #line hidden
                return;

            case 4:

            #line 319 "..\..\..\Views\BenchmarkWizardDialog.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ExecuteToggleNodeInfo);

            #line default
            #line hidden
                return;

            case 5:
                this.keyBorderColumnDefinition = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 6:
                this.headerRowDefinition = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 7:
                this.header = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:
                this.imageIcon = ((System.Windows.Controls.Image)(target));
                return;

            case 9:
                this.headingLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:
                this.summaryLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.keyBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 12:
                this.content = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 13:
                this.executeBenchmarkProgress = ((TraceLab.UI.WPF.Controls.ProgressControl)(target));
                return;

            case 14:
                this.buttonBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 15:
                this.backButton = ((System.Windows.Controls.Button)(target));
                return;

            case 16:
                this.nextButton = ((System.Windows.Controls.Button)(target));
                return;

            case 17:
                this.processButton = ((System.Windows.Controls.Button)(target));
                return;

            case 18:
                this.cancelButton = ((System.Windows.Controls.Button)(target));

            #line 452 "..\..\..\Views\BenchmarkWizardDialog.xaml"
                this.cancelButton.Click += new System.Windows.RoutedEventHandler(this.cancelButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }