Beispiel #1
0
 private void LeftControl_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     SelectedTab = this.leftControl;
     SelectedTab.Enable();
     UnselectedTab = this.rightControl;
     UnselectedTab.Disable();
     LoadButtons(SelectedTab.SelectedTabItem?.SelectedItem);
     e.Handled = true;
 }
Beispiel #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 12 "..\..\MainWindow.xaml"
                ((TotalCommander.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Command_Keyboard);

            #line default
            #line hidden
                return;

            case 2:
                this.packMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 27 "..\..\MainWindow.xaml"
                this.packMenuItem.Click += new System.Windows.RoutedEventHandler(this.Pack_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.unpackMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 28 "..\..\MainWindow.xaml"
                this.unpackMenuItem.Click += new System.Windows.RoutedEventHandler(this.Unpack_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.compareMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 29 "..\..\MainWindow.xaml"
                this.compareMenuItem.Click += new System.Windows.RoutedEventHandler(this.Compare_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 31 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.fullViewMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 35 "..\..\MainWindow.xaml"
                this.fullViewMenuItem.Click += new System.Windows.RoutedEventHandler(this.FullView_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.treeViewMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 36 "..\..\MainWindow.xaml"
                this.treeViewMenuItem.Click += new System.Windows.RoutedEventHandler(this.TreeView_Click);

            #line default
            #line hidden
                return;

            case 8:

            #line 37 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.VerticalView_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.newTabMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 39 "..\..\MainWindow.xaml"
                this.newTabMenuItem.Click += new System.Windows.RoutedEventHandler(this.NewTab_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.Link = ((System.Windows.Documents.Hyperlink)(target));

            #line 45 "..\..\MainWindow.xaml"
                this.Link.RequestNavigate += new System.Windows.Navigation.RequestNavigateEventHandler(this.OpenLink);

            #line default
            #line hidden
                return;

            case 11:
                this.CentralGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 12:
                this.leftControl = ((TotalCommander.Controls.FileTab)(target));
                return;

            case 13:
                this.rightControl = ((TotalCommander.Controls.FileTab)(target));
                return;

            case 14:
                this.viewButton = ((System.Windows.Controls.Button)(target));

            #line 74 "..\..\MainWindow.xaml"
                this.viewButton.Click += new System.Windows.RoutedEventHandler(this.View_Button);

            #line default
            #line hidden
                return;

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

            #line 75 "..\..\MainWindow.xaml"
                this.editButton.Click += new System.Windows.RoutedEventHandler(this.Edit_Button);

            #line default
            #line hidden
                return;

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

            #line 76 "..\..\MainWindow.xaml"
                this.copyButton.Click += new System.Windows.RoutedEventHandler(this.Copy_Button);

            #line default
            #line hidden
                return;

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

            #line 77 "..\..\MainWindow.xaml"
                this.moveButton.Click += new System.Windows.RoutedEventHandler(this.Move_Button);

            #line default
            #line hidden
                return;

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

            #line 78 "..\..\MainWindow.xaml"
                this.newFolderButton.Click += new System.Windows.RoutedEventHandler(this.NewFolder_Button);

            #line default
            #line hidden
                return;

            case 19:
                this.deleteButton = ((System.Windows.Controls.Button)(target));

            #line 79 "..\..\MainWindow.xaml"
                this.deleteButton.Click += new System.Windows.RoutedEventHandler(this.Delete_Button);

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