Exemplo n.º 1
0
        private static object OnCoerceFocusable(DependencyObject d, object baseValue)
        {
            RibbonCheckBox checkBox = (RibbonCheckBox)d;

            if (checkBox.CoerceFocusable)
            {
                return(false);
            }

            return(baseValue);
        }
        private static Control MapQatDataToControl(VM.QatItem qatItem)
        {
            string typeName = qatItem.Instance.GetType().Name;
            Control control = null;

            switch (typeName)
            {
                case "ButtonData":
                    {
                        control = new RibbonButton();
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "ToggleButtonData":
                    {
                        control = new RibbonToggleButton();
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "RadioButtonData":
                    {
                        control = new RibbonRadioButton();
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "CheckBoxData":
                    {
                        control = new RibbonCheckBox();
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "TextBoxData":
                    {
                        control = new RibbonTextBox();
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "MenuButtonData":
                    {
                        control = new RibbonMenuButton();
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "SplitButtonData":
                    {
                        if (!qatItem.IsSplitHeader)
                        {
                            control = new RibbonSplitButton();
                        }
                        else
                        {
                            VM.SplitButtonData splitButtonData = (VM.SplitButtonData)qatItem.Instance;
                            if (splitButtonData.IsCheckable)
                            {
                                control = new RibbonToggleButton();
                            }
                            else
                            {
                                control = new RibbonButton();
                            }
                        }
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "ComboBoxData":
                    {
                        control = new RibbonComboBox();
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "MenuItemData":
                    {
                        VM.MenuItemData menuItemData = (VM.MenuItemData)qatItem.Instance;
                        if (menuItemData.ControlDataCollection.Count > 0)
                        {
                            control = new RibbonMenuButton();
                        }
                        else
                        {
                            control = new RibbonButton();
                        }
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "SplitMenuItemData":
                    {
                        VM.SplitMenuItemData splitMenuItemData = (VM.SplitMenuItemData)qatItem.Instance;
                        if (!qatItem.IsSplitHeader)
                        {
                            if (splitMenuItemData.ControlDataCollection.Count > 0)
                            {
                                control = new RibbonSplitButton();
                            }
                            else if (splitMenuItemData.IsCheckable)
                            {
                                control = new RibbonToggleButton();
                            }
                            else
                            {
                                control = new RibbonButton();
                            }
                        }
                        else
                        {
                            control = new RibbonToggleButton();
                        }
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "GalleryData":
                    {
                        RibbonGallery gallery = new RibbonGallery();
                        RibbonMenuButton menuButton = new RibbonMenuButton();
                        menuButton.ItemsSource = new object[] { gallery };

                        control = menuButton;
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "GroupData":
                    {
                        control = new RibbonGroup();
                        control.DataContext = qatItem.Instance;
                        break;
                    }
            }

            return control;
        }
 /// <summary>
 ///   Initialize Automation Peer for RibbonCheckBox
 /// </summary>        
 public RibbonCheckBoxAutomationPeer(RibbonCheckBox owner)
     : base(owner)
 {
 }
        private static void translateLabel(RibbonCheckBox button) {
            string name = button.Label.ToString();


            StringCollection str = Strings.getInterfaceString(name);
            if (str[StringType.Label].HasHotKey) {
                button.KeyTip = str[StringType.Label].HotKey;
            }

            button.Label = str[StringType.Label].interpret();

            if (str.ContainsKey(StringType.ToolTip)) {
                button.ToolTip = str[StringType.ToolTip].interpret();
            }
        }
Exemplo n.º 5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((DBManager.MainWindow)(target));
                return;

            case 2:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 3:
                this.dpMain = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 4:
                this.Ribbon = ((Microsoft.Windows.Controls.Ribbon.Ribbon)(target));
                return;

            case 5:
                this.txtblkErrLogItemChanged = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:

            #line 71 "..\..\..\MainWindow.xaml"
                ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.rsmiAbout_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.ramiExportToXls = ((Microsoft.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target));

            #line 82 "..\..\..\MainWindow.xaml"
                this.ramiExportToXls.Click += new System.Windows.RoutedEventHandler(this.ExportToXlsCmdExecuted);

            #line default
            #line hidden
                return;

            case 8:
                this.ramiExportFromXls = ((Microsoft.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target));

            #line 88 "..\..\..\MainWindow.xaml"
                this.ramiExportFromXls.Click += new System.Windows.RoutedEventHandler(this.CreateCompetitionCmdExecuted);

            #line default
            #line hidden
                return;

            case 9:
                this.ribtabMain = ((Microsoft.Windows.Controls.Ribbon.RibbonTab)(target));
                return;

            case 10:
                this.rbtnStartStop = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 99 "..\..\..\MainWindow.xaml"
                this.rbtnStartStop.Click += new System.Windows.RoutedEventHandler(this.StartCmdExecuted);

            #line default
            #line hidden
                return;

            case 11:

            #line 105 "..\..\..\MainWindow.xaml"
                ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.RefreshCmdExecuted);

            #line default
            #line hidden
                return;

            case 12:

            #line 111 "..\..\..\MainWindow.xaml"
                ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.SyncDBWithFilesCmdExecuted);

            #line default
            #line hidden
                return;

            case 13:

            #line 116 "..\..\..\MainWindow.xaml"
                ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.DBToGridCmdExecuted);

            #line default
            #line hidden
                return;

            case 14:
                this.rmbtnGroup = ((Microsoft.Windows.Controls.Ribbon.RibbonMenuButton)(target));
                return;

            case 15:
                this.rmbtnRound = ((Microsoft.Windows.Controls.Ribbon.RibbonMenuButton)(target));
                return;

            case 16:
                this.rbtnOpenWorkbook = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 153 "..\..\..\MainWindow.xaml"
                this.rbtnOpenWorkbook.Click += new System.Windows.RoutedEventHandler(this.OpenWorkbookCmdExecuted);

            #line default
            #line hidden
                return;

            case 17:
                this.rchkShowGroupHead = ((Microsoft.Windows.Controls.Ribbon.RibbonCheckBox)(target));

            #line 158 "..\..\..\MainWindow.xaml"
                this.rchkShowGroupHead.Click += new System.Windows.RoutedEventHandler(this.rchkShowGroupHead_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.rchkAutoscrollEnabled = ((Microsoft.Windows.Controls.Ribbon.RibbonCheckBox)(target));

            #line 163 "..\..\..\MainWindow.xaml"
                this.rchkAutoscrollEnabled.Checked += new System.Windows.RoutedEventHandler(this.rchkAutoscrollEnabled_CheckedUnchecked);

            #line default
            #line hidden

            #line 164 "..\..\..\MainWindow.xaml"
                this.rchkAutoscrollEnabled.Unchecked += new System.Windows.RoutedEventHandler(this.rchkAutoscrollEnabled_CheckedUnchecked);

            #line default
            #line hidden
                return;

            case 19:

            #line 170 "..\..\..\MainWindow.xaml"
                ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.PublishingSettingsCmdExecuted);

            #line default
            #line hidden
                return;

            case 20:

            #line 173 "..\..\..\MainWindow.xaml"
                ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.PublishResultsCmdExecuted);

            #line default
            #line hidden
                return;

            case 21:
                this.rbtnPublishResultsLogWindow = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 177 "..\..\..\MainWindow.xaml"
                this.rbtnPublishResultsLogWindow.Click += new System.Windows.RoutedEventHandler(this.PublishingLogCmdExecuted);

            #line default
            #line hidden
                return;

            case 22:
                this.rchkAutoPublishing = ((Microsoft.Windows.Controls.Ribbon.RibbonCheckBox)(target));

            #line 180 "..\..\..\MainWindow.xaml"
                this.rchkAutoPublishing.Click += new System.Windows.RoutedEventHandler(this.rchkAutoPublishing_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.ribtabConfig = ((Microsoft.Windows.Controls.Ribbon.RibbonTab)(target));
                return;

            case 24:

            #line 191 "..\..\..\MainWindow.xaml"
                ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.SettingsCmdExecuted);

            #line default
            #line hidden
                return;

            case 25:
                this.rbtnLogWindow = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 197 "..\..\..\MainWindow.xaml"
                this.rbtnLogWindow.Click += new System.Windows.RoutedEventHandler(this.LogWindowCmdExecuted);

            #line default
            #line hidden
                return;

            case 26:
                this.rbtnShowRemoteControlWnd = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 203 "..\..\..\MainWindow.xaml"
                this.rbtnShowRemoteControlWnd.Click += new System.Windows.RoutedEventHandler(this.ShowRemoteControlWndCmdExecuted);

            #line default
            #line hidden
                return;

            case 27:
                this.rbtnFalsestartRules = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 208 "..\..\..\MainWindow.xaml"
                this.rbtnFalsestartRules.Click += new System.Windows.RoutedEventHandler(this.FalsestartRulesCmdExecuted);

            #line default
            #line hidden
                return;

            case 28:

            #line 216 "..\..\..\MainWindow.xaml"
                ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.CalcGradesCmdExecuted);

            #line default
            #line hidden
                return;

            case 29:
                this.mbtnHighlightGrades = ((Microsoft.Windows.Controls.Ribbon.RibbonMenuButton)(target));
                return;

            case 30:
                this.grdGroupHead = ((System.Windows.Controls.Grid)(target));
                return;

            case 31:
                this.lblCompName = ((System.Windows.Controls.Label)(target));
                return;

            case 32:
                this.lblLocation = ((System.Windows.Controls.Label)(target));
                return;

            case 33:
                this.lblRoundDate = ((System.Windows.Controls.Label)(target));
                return;

            case 34:
                this.lblRoundName = ((System.Windows.Controls.Label)(target));
                return;

            case 35:
                this.lblMainJudge = ((System.Windows.Controls.Label)(target));
                return;

            case 36:
                this.lblMainSecretary = ((System.Windows.Controls.Label)(target));
                return;

            case 37:
                this.lblRow6 = ((System.Windows.Controls.Label)(target));
                return;

            case 38:
                this.scrlvwrAdditionalDataGridHeader = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 39:
                this.spAdditionalDataGridHeader = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 40:
                this.lblLeftDummy = ((System.Windows.Controls.Label)(target));
                return;

            case 41:
                this.lbRightDummy = ((System.Windows.Controls.Label)(target));
                return;

            case 42:
                this.grdRoundMembersHost = ((System.Windows.Controls.Grid)(target));

            #line 355 "..\..\..\MainWindow.xaml"
                this.grdRoundMembersHost.SizeChanged += new System.Windows.SizeChangedEventHandler(this.grdRoundMembersHost_SizeChanged);

            #line default
            #line hidden
                return;

            case 43:
                this.dgrdRoundMembers = ((System.Windows.Controls.DataGrid)(target));

            #line 386 "..\..\..\MainWindow.xaml"
                this.dgrdRoundMembers.AddHandler(System.Windows.Controls.ScrollViewer.ScrollChangedEvent, new System.Windows.Controls.ScrollChangedEventHandler(this.dgrdRoundMembers_ScrollChanged));

            #line default
            #line hidden

            #line 387 "..\..\..\MainWindow.xaml"
                this.dgrdRoundMembers.SizeChanged += new System.Windows.SizeChangedEventHandler(this.dgrdRoundMembers_SizeChanged);

            #line default
            #line hidden
                return;

            case 44:
                this.grdspltrRoundMembers = ((System.Windows.Controls.GridSplitter)(target));
                return;

            case 45:
                this.dgrdRoundMembers2 = ((System.Windows.Controls.DataGrid)(target));

            #line 422 "..\..\..\MainWindow.xaml"
                this.dgrdRoundMembers2.SizeChanged += new System.Windows.SizeChangedEventHandler(this.dgrdRoundMembers2_SizeChanged);

            #line default
            #line hidden
                return;

            case 46:
                this.RightPanel = ((DBManager.RightPanels.CRightPanelControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 6
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((SGet.MainWindow)(target));

            #line 8 "..\..\..\MainWindow.xaml"
                this.mainWindow.KeyDown += new System.Windows.Input.KeyEventHandler(this.mainWindow_KeyDown);

            #line default
            #line hidden

            #line 9 "..\..\..\MainWindow.xaml"
                this.mainWindow.Closing += new System.ComponentModel.CancelEventHandler(this.mainWindow_Closing);

            #line default
            #line hidden

            #line 9 "..\..\..\MainWindow.xaml"
                this.mainWindow.StateChanged += new System.EventHandler(this.mainWindow_StateChanged);

            #line default
            #line hidden

            #line 9 "..\..\..\MainWindow.xaml"
                this.mainWindow.ContentRendered += new System.EventHandler(this.mainWindow_ContentRendered);

            #line default
            #line hidden
                return;

            case 2:
                this.dockPanel = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 3:
                this.XNotifyIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));

            #line 92 "..\..\..\MainWindow.xaml"
                this.XNotifyIcon.TrayLeftMouseUp += new System.Windows.RoutedEventHandler(this.tcmShowMainWindow_Click);

            #line default
            #line hidden
                return;

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

            #line 95 "..\..\..\MainWindow.xaml"
                this.tcmShowMainWindow.Click += new System.Windows.RoutedEventHandler(this.tcmShowMainWindow_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.tcmNewDownload = ((System.Windows.Controls.MenuItem)(target));

            #line 97 "..\..\..\MainWindow.xaml"
                this.tcmNewDownload.Click += new System.Windows.RoutedEventHandler(this.btnNewDownload_Click);

            #line default
            #line hidden
                return;

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

            #line 98 "..\..\..\MainWindow.xaml"
                this.tcmBatchDownload.Click += new System.Windows.RoutedEventHandler(this.btnBatchDownload_Click);

            #line default
            #line hidden
                return;

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

            #line 100 "..\..\..\MainWindow.xaml"
                this.tcmStartAll.Click += new System.Windows.RoutedEventHandler(this.cmStartAll_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.tcmPauseAll = ((System.Windows.Controls.MenuItem)(target));

            #line 101 "..\..\..\MainWindow.xaml"
                this.tcmPauseAll.Click += new System.Windows.RoutedEventHandler(this.cmPauseAll_Click);

            #line default
            #line hidden
                return;

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

            #line 103 "..\..\..\MainWindow.xaml"
                this.tcmAbout.Click += new System.Windows.RoutedEventHandler(this.btnAbout_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.tcmExit = ((System.Windows.Controls.MenuItem)(target));

            #line 104 "..\..\..\MainWindow.xaml"
                this.tcmExit.Click += new System.Windows.RoutedEventHandler(this.tcmExit_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.mainRibbon = ((Microsoft.Windows.Controls.Ribbon.Ribbon)(target));
                return;

            case 12:
                this.ribbonMenu = ((Microsoft.Windows.Controls.Ribbon.RibbonApplicationMenu)(target));
                return;

            case 13:
                this.ribbonTabMain = ((Microsoft.Windows.Controls.Ribbon.RibbonTab)(target));
                return;

            case 14:
                this.AddRemoveGroup = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 15:
                this.btnNewDownload = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 115 "..\..\..\MainWindow.xaml"
                this.btnNewDownload.Click += new System.Windows.RoutedEventHandler(this.btnNewDownload_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.btnBatchDownload = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 116 "..\..\..\MainWindow.xaml"
                this.btnBatchDownload.Click += new System.Windows.RoutedEventHandler(this.btnBatchDownload_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.btnDelete = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 117 "..\..\..\MainWindow.xaml"
                this.btnDelete.Click += new System.Windows.RoutedEventHandler(this.btnDelete_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.btnClearCompleted = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 118 "..\..\..\MainWindow.xaml"
                this.btnClearCompleted.Click += new System.Windows.RoutedEventHandler(this.btnClearCompleted_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.ProcessGroup = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 20:
                this.btnStart = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 121 "..\..\..\MainWindow.xaml"
                this.btnStart.Click += new System.Windows.RoutedEventHandler(this.btnStart_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.btnPause = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 122 "..\..\..\MainWindow.xaml"
                this.btnPause.Click += new System.Windows.RoutedEventHandler(this.btnPause_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.SettingsGroup = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 23:
                this.btnSetLimits = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 125 "..\..\..\MainWindow.xaml"
                this.btnSetLimits.Click += new System.Windows.RoutedEventHandler(this.btnSetLimits_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.btnPreferences = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 126 "..\..\..\MainWindow.xaml"
                this.btnPreferences.Click += new System.Windows.RoutedEventHandler(this.btnPreferences_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.ShowGroup = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 26:
                this.cbShowGrid = ((Microsoft.Windows.Controls.Ribbon.RibbonCheckBox)(target));

            #line 129 "..\..\..\MainWindow.xaml"
                this.cbShowGrid.Click += new System.Windows.RoutedEventHandler(this.cbShowGrid_Click);

            #line default
            #line hidden
                return;

            case 27:
                this.cbShowProperties = ((Microsoft.Windows.Controls.Ribbon.RibbonCheckBox)(target));

            #line 130 "..\..\..\MainWindow.xaml"
                this.cbShowProperties.Click += new System.Windows.RoutedEventHandler(this.cbShowProperties_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.cbShowStatusBar = ((Microsoft.Windows.Controls.Ribbon.RibbonCheckBox)(target));

            #line 131 "..\..\..\MainWindow.xaml"
                this.cbShowStatusBar.Click += new System.Windows.RoutedEventHandler(this.cbShowStatusBar_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.InfoGroup = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 30:
                this.btnAbout = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 134 "..\..\..\MainWindow.xaml"
                this.btnAbout.Click += new System.Windows.RoutedEventHandler(this.btnAbout_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.statusBar = ((System.Windows.Controls.Primitives.StatusBar)(target));
                return;

            case 32:
                this.statusBarDownloads = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
                return;

            case 33:
                this.statusBarActive = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
                return;

            case 34:
                this.statusBarCompleted = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
                return;

            case 35:
                this.propertiesPanel = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 36:
                this.propertiesBar = ((System.Windows.Controls.Primitives.StatusBar)(target));
                return;

            case 37:
                this.propertiesItem = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
                return;

            case 38:
                this.propertiesScrollViewer = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 39:
                this.propertiesGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 151 "..\..\..\MainWindow.xaml"
                this.propertiesGrid.PreviewMouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.propertiesGrid_PreviewMouseWheel);

            #line default
            #line hidden
                return;

            case 40:
                this.tcPropertyName = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 41:
                this.tcPropertyValue = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 42:
                this.propertiesSplitter = ((OpenSourceControls.DockPanelSplitter)(target));
                return;

            case 43:
                this.downloadsPanel = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 44:
                this.dgScrollViewer = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 45:
                this.downloadsGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 166 "..\..\..\MainWindow.xaml"
                this.downloadsGrid.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.cmOpenFile_Click);

            #line default
            #line hidden

            #line 166 "..\..\..\MainWindow.xaml"
                this.downloadsGrid.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.downloadsGrid_SelectionChanged);

            #line default
            #line hidden

            #line 166 "..\..\..\MainWindow.xaml"
                this.downloadsGrid.PreviewMouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.downloadsGrid_PreviewMouseWheel);

            #line default
            #line hidden

            #line 167 "..\..\..\MainWindow.xaml"
                this.downloadsGrid.KeyUp += new System.Windows.Input.KeyEventHandler(this.downloadsGrid_KeyUp);

            #line default
            #line hidden

            #line 168 "..\..\..\MainWindow.xaml"
                this.downloadsGrid.ContextMenuOpening += new System.Windows.Controls.ContextMenuEventHandler(this.downloadsGrid_ContextMenuOpening);

            #line default
            #line hidden
                return;

            case 46:
                this.cmStart = ((System.Windows.Controls.MenuItem)(target));

            #line 171 "..\..\..\MainWindow.xaml"
                this.cmStart.Click += new System.Windows.RoutedEventHandler(this.btnStart_Click);

            #line default
            #line hidden
                return;

            case 47:
                this.cmPause = ((System.Windows.Controls.MenuItem)(target));

            #line 172 "..\..\..\MainWindow.xaml"
                this.cmPause.Click += new System.Windows.RoutedEventHandler(this.btnPause_Click);

            #line default
            #line hidden
                return;

            case 48:
                this.cmDelete = ((System.Windows.Controls.MenuItem)(target));

            #line 174 "..\..\..\MainWindow.xaml"
                this.cmDelete.Click += new System.Windows.RoutedEventHandler(this.btnDelete_Click);

            #line default
            #line hidden
                return;

            case 49:
                this.cmRestart = ((System.Windows.Controls.MenuItem)(target));

            #line 175 "..\..\..\MainWindow.xaml"
                this.cmRestart.Click += new System.Windows.RoutedEventHandler(this.cmRestart_Click);

            #line default
            #line hidden
                return;

            case 50:
                this.cmOpenFile = ((System.Windows.Controls.MenuItem)(target));

            #line 177 "..\..\..\MainWindow.xaml"
                this.cmOpenFile.Click += new System.Windows.RoutedEventHandler(this.cmOpenFile_Click);

            #line default
            #line hidden
                return;

            case 51:
                this.cmOpenDownloadFolder = ((System.Windows.Controls.MenuItem)(target));

            #line 178 "..\..\..\MainWindow.xaml"
                this.cmOpenDownloadFolder.Click += new System.Windows.RoutedEventHandler(this.cmOpenDownloadFolder_Click);

            #line default
            #line hidden
                return;

            case 52:
                this.cmStartAll = ((System.Windows.Controls.MenuItem)(target));

            #line 180 "..\..\..\MainWindow.xaml"
                this.cmStartAll.Click += new System.Windows.RoutedEventHandler(this.cmStartAll_Click);

            #line default
            #line hidden
                return;

            case 53:
                this.cmPauseAll = ((System.Windows.Controls.MenuItem)(target));

            #line 181 "..\..\..\MainWindow.xaml"
                this.cmPauseAll.Click += new System.Windows.RoutedEventHandler(this.cmPauseAll_Click);

            #line default
            #line hidden
                return;

            case 54:
                this.cmSelectAll = ((System.Windows.Controls.MenuItem)(target));

            #line 182 "..\..\..\MainWindow.xaml"
                this.cmSelectAll.Click += new System.Windows.RoutedEventHandler(this.cmSelectAll_Click);

            #line default
            #line hidden
                return;

            case 55:
                this.cmCopyURLtoClipboard = ((System.Windows.Controls.MenuItem)(target));

            #line 184 "..\..\..\MainWindow.xaml"
                this.cmCopyURLtoClipboard.Click += new System.Windows.RoutedEventHandler(this.cmCopyURLtoClipboard_Click);

            #line default
            #line hidden
                return;

            case 56:
                this.tcFileName = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 57:
                this.tcSize = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 58:
                this.tcDownloaded = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 59:
                this.tcPercent = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 60:
                this.tcProgress = ((System.Windows.Controls.DataGridTemplateColumn)(target));
                return;

            case 61:
                this.tcSpeed = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 62:
                this.tcTimeLeft = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 63:
                this.tcStatus = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 64:
                this.tcAddedOn = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 65:
                this.tcCompletedOn = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }