Exemple #1
0
        void window_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.Key)
            {
            case Key.System:
                switch (e.SystemKey)
                {
                case Key.R:
                    if (e.KeyboardDevice.Modifiers == ModifierKeys.Alt)
                    {
                        MainToolBar.OpenContextMenu(MainToolBar.ButtonReports);
                        e.Handled = true;
                    }
                    break;

                case Key.T:
                    if (e.KeyboardDevice.Modifiers == ModifierKeys.Alt)
                    {
                        MainToolBar.OpenContextMenu(MainToolBar.ButtonTools);
                        e.Handled = true;
                    }
                    break;

                case Key.H:
                    if (e.KeyboardDevice.Modifiers == ModifierKeys.Alt)
                    {
                        MainToolBar.OpenContextMenu(MainToolBar.ButtonHelp);
                        e.Handled = true;
                    }
                    break;
                }
                break;
            }
        }
Exemple #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 12 "..\..\..\..\MainWindow\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.NewExecuted);

            #line default
            #line hidden

            #line 12 "..\..\..\..\MainWindow\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.NewCanExecute);

            #line default
            #line hidden
                return;

            case 2:

            #line 13 "..\..\..\..\MainWindow\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OpenExecuted);

            #line default
            #line hidden

            #line 13 "..\..\..\..\MainWindow\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanExecute);

            #line default
            #line hidden
                return;

            case 3:

            #line 14 "..\..\..\..\MainWindow\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.PrintExecuted);

            #line default
            #line hidden

            #line 14 "..\..\..\..\MainWindow\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanExecute);

            #line default
            #line hidden
                return;

            case 4:

            #line 15 "..\..\..\..\MainWindow\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.SaveExecuted);

            #line default
            #line hidden

            #line 15 "..\..\..\..\MainWindow\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.SaveCanExecute);

            #line default
            #line hidden
                return;

            case 5:
                this.MainToolBar = ((TraceWizard.TwApp.MainToolBar)(target));
                return;

            case 6:
                this.LabelVersion = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.TabControl = ((System.Windows.Controls.TabControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #3
0
 void InitializeToolBar()
 {
     MainToolBar.FeatureLevel = featureLevel;
     MainToolBar.DispatchLoad = DispatchLoad;
     MainToolBar.Initialize();
 }