Inheritance: System.Windows.Controls.Control
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ribbon = ((Fluent.Ribbon)(target));
                return;

            case 2:
                this.backStageTaItemAutoFilter = ((Fluent.BackstageTabItem)(target));
                return;

            case 3:
                this.backStageTaItemDashboard = ((Fluent.BackstageTabItem)(target));
                return;

            case 4:
                this.backStageTaItemCopyPaste = ((Fluent.BackstageTabItem)(target));
                return;

            case 5:
                this.backStageTaItemOther = ((Fluent.BackstageTabItem)(target));
                return;
            }
            this._contentLoaded = true;
        }
		private void RefreshQATDialog(Ribbon ribbon) {
			List<IRibbonControl> NonQATButtons = (from Tab in ribbon.Tabs
												  from Group in Tab.Groups
												  from Item in Group.Items.OfType<IRibbonControl>()
												  where !(ribbon.IsInQuickAccessToolBar(Item as UIElement))
												  orderby Item.Header
												  select Item).ToList();

			foreach (IRibbonControl item in NonQATButtons) {
				AllControls.Items.Add(GetRibbonItemListDisplay(item));
			}

			#region DO NOT DELETE (yet) [From: Aaron Campf]
			var AllMenuItems = MainForm.TheRibbon.QuickAccessItems.Select(x => x.Target).ToList();
			var Controls = (from control in MainForm.TheRibbon.QuickAccessItems
							select control as Control into newControl
							where !AllMenuItems.Any(x => x.Name == newControl.Name)
							select newControl).ToList();
			#endregion

			AllMenuItems.AddRange(Controls);
			//Here add visible elements since we want to show in that dialog only visible elements into the QAT.
			//Maybe have to find a way to show all elements even not visible and do some handling to display them properly
			foreach (var item in MainForm.TheRibbon.QuickAccessItems.Cast<IRibbonControl>()) {
				QATControls.Items.Add(GetRibbonItemListDisplay(item));
			}
		}
 /// <summary>
 /// Show ribbon menu.
 /// </summary>
 /// <param name="ribbonMenu"></param>
 public override void ShowRibbonMenu(Fluent.Ribbon ribbonMenu)
 {
     base.ShowRibbonMenu(ribbonMenu);
     if (exampleTabGroup != null)
     {
         exampleTabGroup.Visibility = System.Windows.Visibility.Visible;
     }
 }
        /// <summary>
        /// Hide ribbon menu.
        /// </summary>
        /// <param name="ribbonMenu"></param>
        public override void HideRibbonMenu(Fluent.Ribbon ribbonMenu)
        {
            base.HideRibbonMenu(ribbonMenu);

            if (exampleTabGroup != null)
            {
                exampleTabGroup.Visibility = System.Windows.Visibility.Collapsed;
            }
        }
Exemple #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ribbon = ((Fluent.Ribbon)(target));
                return;

            case 2:
                this.BtnQueryUser = ((Fluent.Button)(target));
                return;

            case 3:
                this.BtnAddUser = ((Fluent.Button)(target));
                return;

            case 4:
                this.BtnModifyUser = ((Fluent.Button)(target));
                return;

            case 5:
                this.BtnQueryRole = ((Fluent.Button)(target));
                return;

            case 6:
                this.BtnAddRole = ((Fluent.Button)(target));
                return;

            case 7:
                this.BtnModifyRole = ((Fluent.Button)(target));
                return;

            case 8:
                this.BtnQueryDept = ((Fluent.Button)(target));
                return;

            case 9:
                this.BtnAddDept = ((Fluent.Button)(target));
                return;

            case 10:
                this.BtnModifyDept = ((Fluent.Button)(target));
                return;

            case 11:
                this.BtnSecManager = ((Fluent.Button)(target));
                return;

            case 12:
                this.BtnModifyPassword = ((Fluent.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ribbon = ((Fluent.Ribbon)(target));
                return;

            case 2:
                this.btnDataImport = ((Fluent.Button)(target));
                return;

            case 3:
                this.btnCategoryAdd = ((Fluent.Button)(target));
                return;

            case 4:
                this.btnCategoryEdit = ((Fluent.Button)(target));
                return;

            case 5:
                this.btnCategoryDelete = ((Fluent.Button)(target));
                return;

            case 6:
                this.btnProductAdd = ((Fluent.Button)(target));
                return;

            case 7:
                this.btnProductEdit = ((Fluent.Button)(target));
                return;

            case 8:
                this.btnProductDelete = ((Fluent.Button)(target));
                return;

            case 9:
                this.btnOrderCreate = ((Fluent.Button)(target));
                return;

            case 10:
                this.btnOrderUpdate = ((Fluent.Button)(target));
                return;

            case 11:
                this.btnOrderDelete = ((Fluent.Button)(target));
                return;

            case 12:
                this.tabs = ((System.Windows.Controls.TabControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
        /// <summary>
        /// Default constrctor
        /// </summary>
        /// <param name="ribbon">Host element</param>
        public KeyTipService(Ribbon ribbon)
        {
            this.ribbon = ribbon;

            if (!ribbon.IsLoaded) ribbon.Loaded += OnDelayedInitialization;
            else Attach();

            // Initialize timer
            timer = new DispatcherTimer(TimeSpan.FromSeconds(0.7), DispatcherPriority.SystemIdle, OnDelayedShow, Dispatcher.CurrentDispatcher);
            timer.Stop();
        }
        /// <summary>
        /// Default constrctor
        /// </summary>
        /// <param name="ribbon">Host element</param>
        public KeyTipService(Ribbon ribbon)
        {
            this.ribbon = ribbon;

            if (this.ribbon.IsLoaded == false)
            {
                this.ribbon.Loaded += this.OnDelayedInitialization;
            }
            else
            {
                this.Attach();
            }

            // Initialize timer
            this.timer = new DispatcherTimer(TimeSpan.FromSeconds(0.7), DispatcherPriority.SystemIdle, this.OnDelayedShow, Dispatcher.CurrentDispatcher);
            this.timer.Stop();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ribbon = ((Fluent.Ribbon)(target));
                return;

            case 2:
                this.toolsGroup = ((Fluent.RibbonContextualTabGroup)(target));
                return;

            case 3:
                this.contentPanel = ((MainWindowNS.TabControlView)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #10
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\MainWindow.xaml"
                ((QLBanSach.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.ribbon = ((Fluent.Ribbon)(target));
                return;

            case 3:
                this.tabs = ((System.Windows.Controls.TabControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\MainWindow.xaml"
                ((QLBanSach.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.ribbon = ((Fluent.Ribbon)(target));
                return;

            case 3:
                this.btnAdd = ((Fluent.Button)(target));
                return;

            case 4:
                this.btnEdit = ((Fluent.Button)(target));
                return;

            case 5:
                this.btnDelete = ((Fluent.Button)(target));
                return;

            case 6:
                this.btnAddp = ((Fluent.Button)(target));
                return;

            case 7:
                this.btnEditp = ((Fluent.Button)(target));
                return;

            case 8:
                this.btnDeletep = ((Fluent.Button)(target));
                return;

            case 9:
                this.btnAddt = ((Fluent.Button)(target));
                return;

            case 10:
                this.btnEditt = ((Fluent.Button)(target));
                return;

            case 11:
                this.btnDeletet = ((Fluent.Button)(target));
                return;

            case 12:
                this.btnStatistics = ((Fluent.Button)(target));

            #line 48 "..\..\MainWindow.xaml"
                this.btnStatistics.Click += new System.Windows.RoutedEventHandler(this.btnStatistics_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.tabs = ((System.Windows.Controls.TabControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #12
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.fmMain = ((LEDX.MWin)(target));
     return;
     case 2:
     this.ribbon = ((Fluent.Ribbon)(target));
     
     #line 57 "..\..\MainWindow.xaml"
     this.ribbon.SelectedTabChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Ribbon_SelectedTabChanged);
     
     #line default
     #line hidden
     return;
     case 3:
     this.btNewProj = ((Fluent.Button)(target));
     return;
     case 4:
     this.btOpenProj = ((Fluent.Button)(target));
     return;
     case 5:
     this.btSaveProj = ((Fluent.Button)(target));
     return;
     case 6:
     this.tbEdit = ((Fluent.RibbonTabItem)(target));
     return;
     case 7:
     this.btUndo = ((Fluent.SplitButton)(target));
     return;
     case 8:
     this.btPasteFram = ((Fluent.SplitButton)(target));
     return;
     case 9:
     this.rgbContrProp = ((Fluent.RibbonGroupBox)(target));
     return;
     case 10:
     this.spAddNew = ((Fluent.SplitButton)(target));
     return;
     case 11:
     this.btDel = ((Fluent.MenuItem)(target));
     return;
     case 12:
     this.tbConName = ((Fluent.TextBox)(target));
     return;
     case 13:
     this.tbConNumb = ((Fluent.Spinner)(target));
     return;
     case 14:
     this.tbConButt = ((Fluent.Spinner)(target));
     return;
     case 15:
     this.rgbFrameProp = ((Fluent.RibbonGroupBox)(target));
     return;
     case 16:
     this.spTime = ((Fluent.Spinner)(target));
     return;
     case 17:
     this.btCopyFram = ((Fluent.Button)(target));
     return;
     case 18:
     this.btCutFram = ((Fluent.Button)(target));
     return;
     case 19:
     this.btDelFram = ((Fluent.Button)(target));
     return;
     case 20:
     this.btToSample = ((Fluent.Button)(target));
     return;
     case 21:
     this.spbtFSet = ((Fluent.SplitButton)(target));
     
     #line 179 "..\..\MainWindow.xaml"
     this.spbtFSet.DropDownClosed += new System.EventHandler(this.SpbtFSet_DropDownClosed);
     
     #line default
     #line hidden
     return;
     case 22:
     this.rgbColorProp = ((Fluent.RibbonGroupBox)(target));
     return;
     case 23:
     this.btBegColor = ((Fluent.Button)(target));
     return;
     case 24:
     this.rctBegClolor = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 25:
     this.btCopyColor = ((Fluent.Button)(target));
     return;
     case 26:
     this.btGetColor = ((Fluent.Button)(target));
     return;
     case 27:
     this.btEndColor = ((Fluent.Button)(target));
     return;
     case 28:
     this.rctEndClolor = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 29:
     this.btCopy = ((Fluent.Button)(target));
     return;
     case 30:
     this.grSampl = ((Fluent.InRibbonGallery)(target));
     return;
     case 31:
     this.tbPalyer = ((Fluent.RibbonTabItem)(target));
     return;
     case 32:
     this.rgbPropLayer = ((Fluent.RibbonGroupBox)(target));
     return;
     case 33:
     this.btLayerDown = ((Fluent.Button)(target));
     return;
     case 34:
     this.btLayerTop = ((Fluent.Button)(target));
     return;
     case 35:
     this.btDelLay = ((Fluent.Button)(target));
     return;
     case 36:
     this.rgbPropPng = ((Fluent.RibbonGroupBox)(target));
     return;
     case 37:
     this.cbController = ((Fluent.ComboBox)(target));
     return;
     case 38:
     this.lgWidth = ((Fluent.TextBox)(target));
     return;
     case 39:
     this.lgHeight = ((Fluent.TextBox)(target));
     return;
     case 40:
     this.rgbPropText = ((Fluent.RibbonGroupBox)(target));
     return;
     case 41:
     this.lbtemTest = ((System.Windows.Controls.Label)(target));
     return;
     case 42:
     this.temTest = ((LEDX.Components.MultiLineTextEditor)(target));
     return;
     case 43:
     this.spTextSize = ((Fluent.Spinner)(target));
     return;
     case 44:
     this.cbFontFamaly = ((Fluent.ComboBox)(target));
     return;
     case 45:
     this.rctTextClolor = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 46:
     this.tbFlash = ((Fluent.RibbonTabItem)(target));
     return;
     case 47:
     this.lbPort = ((System.Windows.Controls.Label)(target));
     return;
     case 48:
     this.cbComName = ((Fluent.ComboBox)(target));
     return;
     case 49:
     this.lbSpeed = ((System.Windows.Controls.Label)(target));
     return;
     case 50:
     this.cbComRate = ((Fluent.ComboBox)(target));
     return;
     case 51:
     this.btRefrPorts = ((Fluent.Button)(target));
     return;
     case 52:
     this.tbSync = ((Fluent.ToggleButton)(target));
     return;
     case 53:
     this.tgbShowLog = ((Fluent.ToggleButton)(target));
     return;
     case 54:
     this.spProgress = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 55:
     this.uiScaleSlider = ((System.Windows.Controls.Slider)(target));
     
     #line 531 "..\..\MainWindow.xaml"
     this.uiScaleSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.uiScaleSlider_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 56:
     this.uiMan = ((LEDX.Components.PlayScale)(target));
     return;
     case 57:
     this.svSearch = ((System.Windows.Controls.ScrollViewer)(target));
     return;
     case 58:
     this.sldTime = ((LEDX.Components.TimeSlider)(target));
     
     #line 561 "..\..\MainWindow.xaml"
     this.sldTime.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sld_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 59:
     this.scroll = ((System.Windows.Controls.ScrollViewer)(target));
     return;
     case 60:
     this.icContr = ((System.Windows.Controls.ItemsControl)(target));
     return;
     case 61:
     this.svTracks = ((System.Windows.Controls.ScrollViewer)(target));
     return;
     case 62:
     this.icTrack = ((System.Windows.Controls.ItemsControl)(target));
     return;
     case 63:
     this.iCanv = ((LEDX.Components.IncRender)(target));
     
     #line 598 "..\..\MainWindow.xaml"
     this.iCanv.SelectionChanged += new System.EventHandler(this.iCanv_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 64:
     this.mainScroller = ((System.Windows.Controls.ScrollViewer)(target));
     
     #line 607 "..\..\MainWindow.xaml"
     this.mainScroller.ScrollChanged += new System.Windows.Controls.ScrollChangedEventHandler(this.mainScroller_ScrollChanged);
     
     #line default
     #line hidden
     return;
     case 65:
     this.svLog = ((System.Windows.Controls.ScrollViewer)(target));
     return;
     case 66:
     this.tbLog = ((System.Windows.Controls.TextBox)(target));
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.ribbon = ((Fluent.Ribbon)(target));
     return;
     case 2:
     this.toolsGroup = ((Fluent.RibbonContextualTabGroup)(target));
     return;
     case 3:
     this.contentPanel = ((MainWindowNS.TabControlView)(target));
     return;
     }
     this._contentLoaded = true;
 }
Exemple #14
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.fmMain = ((LEDX.MWin)(target));
                return;

            case 2:
                this.ribbon = ((Fluent.Ribbon)(target));

            #line 57 "..\..\MainWindow.xaml"
                this.ribbon.SelectedTabChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Ribbon_SelectedTabChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.btNewProj = ((Fluent.Button)(target));
                return;

            case 4:
                this.btOpenProj = ((Fluent.Button)(target));
                return;

            case 5:
                this.btSaveProj = ((Fluent.Button)(target));
                return;

            case 6:
                this.tbEdit = ((Fluent.RibbonTabItem)(target));
                return;

            case 7:
                this.btUndo = ((Fluent.SplitButton)(target));
                return;

            case 8:
                this.btPasteFram = ((Fluent.SplitButton)(target));
                return;

            case 9:
                this.rgbContrProp = ((Fluent.RibbonGroupBox)(target));
                return;

            case 10:
                this.spAddNew = ((Fluent.SplitButton)(target));
                return;

            case 11:
                this.btDel = ((Fluent.MenuItem)(target));
                return;

            case 12:
                this.tbConName = ((Fluent.TextBox)(target));
                return;

            case 13:
                this.tbConNumb = ((Fluent.Spinner)(target));
                return;

            case 14:
                this.tbConButt = ((Fluent.Spinner)(target));
                return;

            case 15:
                this.rgbFrameProp = ((Fluent.RibbonGroupBox)(target));
                return;

            case 16:
                this.spTime = ((Fluent.Spinner)(target));
                return;

            case 17:
                this.btCopyFram = ((Fluent.Button)(target));
                return;

            case 18:
                this.btCutFram = ((Fluent.Button)(target));
                return;

            case 19:
                this.btDelFram = ((Fluent.Button)(target));
                return;

            case 20:
                this.btToSample = ((Fluent.Button)(target));
                return;

            case 21:
                this.spbtFSet = ((Fluent.SplitButton)(target));

            #line 179 "..\..\MainWindow.xaml"
                this.spbtFSet.DropDownClosed += new System.EventHandler(this.SpbtFSet_DropDownClosed);

            #line default
            #line hidden
                return;

            case 22:
                this.rgbColorProp = ((Fluent.RibbonGroupBox)(target));
                return;

            case 23:
                this.btBegColor = ((Fluent.Button)(target));
                return;

            case 24:
                this.rctBegClolor = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 25:
                this.btCopyColor = ((Fluent.Button)(target));
                return;

            case 26:
                this.btGetColor = ((Fluent.Button)(target));
                return;

            case 27:
                this.btEndColor = ((Fluent.Button)(target));
                return;

            case 28:
                this.rctEndClolor = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 29:
                this.btCopy = ((Fluent.Button)(target));
                return;

            case 30:
                this.grSampl = ((Fluent.InRibbonGallery)(target));
                return;

            case 31:
                this.tbPalyer = ((Fluent.RibbonTabItem)(target));
                return;

            case 32:
                this.rgbPropLayer = ((Fluent.RibbonGroupBox)(target));
                return;

            case 33:
                this.btLayerDown = ((Fluent.Button)(target));
                return;

            case 34:
                this.btLayerTop = ((Fluent.Button)(target));
                return;

            case 35:
                this.btDelLay = ((Fluent.Button)(target));
                return;

            case 36:
                this.rgbPropPng = ((Fluent.RibbonGroupBox)(target));
                return;

            case 37:
                this.cbController = ((Fluent.ComboBox)(target));
                return;

            case 38:
                this.lgWidth = ((Fluent.TextBox)(target));
                return;

            case 39:
                this.lgHeight = ((Fluent.TextBox)(target));
                return;

            case 40:
                this.rgbPropText = ((Fluent.RibbonGroupBox)(target));
                return;

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

            case 42:
                this.temTest = ((LEDX.Components.MultiLineTextEditor)(target));
                return;

            case 43:
                this.spTextSize = ((Fluent.Spinner)(target));
                return;

            case 44:
                this.cbFontFamaly = ((Fluent.ComboBox)(target));
                return;

            case 45:
                this.rctTextClolor = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 46:
                this.tbFlash = ((Fluent.RibbonTabItem)(target));
                return;

            case 47:
                this.lbPort = ((System.Windows.Controls.Label)(target));
                return;

            case 48:
                this.cbComName = ((Fluent.ComboBox)(target));
                return;

            case 49:
                this.lbSpeed = ((System.Windows.Controls.Label)(target));
                return;

            case 50:
                this.cbComRate = ((Fluent.ComboBox)(target));
                return;

            case 51:
                this.btRefrPorts = ((Fluent.Button)(target));
                return;

            case 52:
                this.tbSync = ((Fluent.ToggleButton)(target));
                return;

            case 53:
                this.tgbShowLog = ((Fluent.ToggleButton)(target));
                return;

            case 54:
                this.spProgress = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 55:
                this.uiScaleSlider = ((System.Windows.Controls.Slider)(target));

            #line 531 "..\..\MainWindow.xaml"
                this.uiScaleSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.uiScaleSlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 56:
                this.uiMan = ((LEDX.Components.PlayScale)(target));
                return;

            case 57:
                this.svSearch = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 58:
                this.sldTime = ((LEDX.Components.TimeSlider)(target));

            #line 561 "..\..\MainWindow.xaml"
                this.sldTime.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.sld_ValueChanged);

            #line default
            #line hidden
                return;

            case 59:
                this.scroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 60:
                this.icContr = ((System.Windows.Controls.ItemsControl)(target));
                return;

            case 61:
                this.svTracks = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 62:
                this.icTrack = ((System.Windows.Controls.ItemsControl)(target));
                return;

            case 63:
                this.iCanv = ((LEDX.Components.IncRender)(target));

            #line 598 "..\..\MainWindow.xaml"
                this.iCanv.SelectionChanged += new System.EventHandler(this.iCanv_SelectionChanged);

            #line default
            #line hidden
                return;

            case 64:
                this.mainScroller = ((System.Windows.Controls.ScrollViewer)(target));

            #line 607 "..\..\MainWindow.xaml"
                this.mainScroller.ScrollChanged += new System.Windows.Controls.ScrollChangedEventHandler(this.mainScroller_ScrollChanged);

            #line default
            #line hidden
                return;

            case 65:
                this.svLog = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 66:
                this.tbLog = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #15
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Ribbon_control = ((Fluent.Ribbon)(target));

            #line 17 "..\..\..\MainWindow.xaml"
                this.Ribbon_control.IsMinimizedChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.Ribbon_control_IsMinimizedChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.backstage = ((Fluent.Backstage)(target));
                return;

            case 3:
                this.bsi_help = ((Fluent.BackstageTabItem)(target));
                return;

            case 4:
                this.grid_help = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.bsi_settings = ((Fluent.BackstageTabItem)(target));
                return;

            case 6:
                this.grid_settings = ((System.Windows.Controls.Grid)(target));
                return;

            case 7:
                this.bsi_close = ((Fluent.BackstageTabItem)(target));

            #line 34 "..\..\..\MainWindow.xaml"
                this.bsi_close.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.bsi_close_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 8:
                this.bt_search = ((Fluent.Button)(target));

            #line 47 "..\..\..\MainWindow.xaml"
                this.bt_search.Click += new System.Windows.RoutedEventHandler(this.bt_geraetSuchen);

            #line default
            #line hidden
                return;

            case 9:
                this.bt_geraetEdit = ((Fluent.Button)(target));

            #line 50 "..\..\..\MainWindow.xaml"
                this.bt_geraetEdit.Click += new System.Windows.RoutedEventHandler(this.bt_geraetBearbeiten);

            #line default
            #line hidden
                return;

            case 10:
                this.bt_abfrage = ((Fluent.Button)(target));

            #line 53 "..\..\..\MainWindow.xaml"
                this.bt_abfrage.Click += new System.Windows.RoutedEventHandler(this.bt_abfrageStarten);

            #line default
            #line hidden
                return;

            case 11:
                this.tbl_info = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:
                this.logo = ((System.Windows.Controls.Image)(target));
                return;

            case 13:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 14:
                this.grid_additionalThings = ((System.Windows.Controls.Grid)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #16
0
 /// <summary>
 /// Invoked whenever an unhandled <see cref="E:System.Windows.FrameworkElement.ContextMenuOpening"/> routed event reaches this class in its route. Implement this method to add class handling for this event. 
 /// </summary>
 /// <param name="e">The <see cref="T:System.Windows.RoutedEventArgs"/> that contains the event data.</param>
 protected override void OnContextMenuOpening(ContextMenuEventArgs e)
 {
     contextMenuOwner = this;
     base.OnContextMenuOpening(e);
 }
 /// <summary>
 /// Creates a new instance.
 /// </summary>
 /// <param name="ribbon">The <see cref="Ribbon"/> of which the state should be stored.</param>
 public RibbonStateStorage(Ribbon ribbon)
 {
     this.ribbon = ribbon;
     this.memoryStream = new MemoryStream();
 }
Exemple #18
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.OpenCommand = ((System.Windows.Input.CommandBinding)(target));
     
     #line 28 "..\..\..\MainWindow.xaml"
     this.OpenCommand.CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.OpenCommandCanExecute);
     
     #line default
     #line hidden
     
     #line 28 "..\..\..\MainWindow.xaml"
     this.OpenCommand.Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OpenCommandExecuted);
     
     #line default
     #line hidden
     return;
     case 2:
     this.NewCommand = ((System.Windows.Input.CommandBinding)(target));
     
     #line 29 "..\..\..\MainWindow.xaml"
     this.NewCommand.CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.NewCommandCanExecute);
     
     #line default
     #line hidden
     
     #line 29 "..\..\..\MainWindow.xaml"
     this.NewCommand.Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.NewCommandExecuted);
     
     #line default
     #line hidden
     return;
     case 3:
     this.SaveCommand = ((System.Windows.Input.CommandBinding)(target));
     
     #line 30 "..\..\..\MainWindow.xaml"
     this.SaveCommand.CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.SaveCommandCanExecute);
     
     #line default
     #line hidden
     
     #line 30 "..\..\..\MainWindow.xaml"
     this.SaveCommand.Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.SaveCommandExecuted);
     
     #line default
     #line hidden
     return;
     case 4:
     this.SaveAsCommand = ((System.Windows.Input.CommandBinding)(target));
     
     #line 31 "..\..\..\MainWindow.xaml"
     this.SaveAsCommand.CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.SaveAsCommandCanExecute);
     
     #line default
     #line hidden
     
     #line 31 "..\..\..\MainWindow.xaml"
     this.SaveAsCommand.Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.SaveAsCommandExecuted);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 32 "..\..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.RecentObjectSelected);
     
     #line default
     #line hidden
     return;
     case 6:
     this.AddDivisionCommand = ((System.Windows.Input.CommandBinding)(target));
     
     #line 34 "..\..\..\MainWindow.xaml"
     this.AddDivisionCommand.CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.AddDivisionCommandCanExecute);
     
     #line default
     #line hidden
     
     #line 34 "..\..\..\MainWindow.xaml"
     this.AddDivisionCommand.Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.AddDivisionCommandExecuted);
     
     #line default
     #line hidden
     return;
     case 7:
     this.ApplicationRibbon = ((Fluent.Ribbon)(target));
     return;
     case 8:
     this.FileMenu = ((Fluent.Backstage)(target));
     return;
     case 9:
     this.MenuRecentItem = ((Fluent.BackstageTabItem)(target));
     return;
     case 10:
     this.MenuContextHeaderDivisible = ((Fluent.RibbonContextualTabGroup)(target));
     return;
     case 11:
     this.MenuContextFillable = ((Fluent.RibbonContextualTabGroup)(target));
     return;
     case 12:
     this.TabHome = ((Fluent.RibbonTabItem)(target));
     return;
     case 13:
     this.ButtonPaste = ((Fluent.SplitButton)(target));
     return;
     case 14:
     this.ButtonCut = ((Fluent.Button)(target));
     return;
     case 15:
     this.ButtonCopy = ((Fluent.Button)(target));
     return;
     case 16:
     this.TabDivision = ((Fluent.RibbonTabItem)(target));
     return;
     case 17:
     this.GroupDivision = ((Fluent.RibbonGroupBox)(target));
     return;
     case 18:
     this.ButtonNoDivision = ((Fluent.Button)(target));
     return;
     case 19:
     this.ButtonFess = ((Fluent.Button)(target));
     return;
     case 20:
     this.ButtonPale = ((Fluent.Button)(target));
     return;
     case 21:
     this.ButtonBend = ((Fluent.Button)(target));
     return;
     case 22:
     this.ButtonBendSinister = ((Fluent.Button)(target));
     return;
     case 23:
     this.GroupAdvancedDivision = ((Fluent.RibbonGroupBox)(target));
     return;
     case 24:
     this.ButtonSaltire = ((Fluent.Button)(target));
     return;
     case 25:
     this.ButtonPartyCross = ((Fluent.Button)(target));
     return;
     case 26:
     this.ButtonPall = ((Fluent.Button)(target));
     return;
     case 27:
     this.ButtonTiercedBend = ((Fluent.Button)(target));
     return;
     case 28:
     this.ButtonTiercedBendSinister = ((Fluent.Button)(target));
     return;
     case 29:
     this.ButtonTiercedPale = ((Fluent.Button)(target));
     return;
     case 30:
     this.ButtonTiercedFess = ((Fluent.Button)(target));
     return;
     case 31:
     this.TabOrdinaries = ((Fluent.RibbonTabItem)(target));
     return;
     case 32:
     this.GroupHonourableOrdinaries = ((Fluent.RibbonGroupBox)(target));
     return;
     case 33:
     this.GroupSubOrdinaries = ((Fluent.RibbonGroupBox)(target));
     return;
     case 34:
     this.TabTinctures = ((Fluent.RibbonTabItem)(target));
     return;
     case 35:
     this.GroupLabelBasicTinctures = ((Fluent.RibbonGroupBox)(target));
     return;
     case 36:
     this.ButtonOr = ((Fluent.Button)(target));
     return;
     case 37:
     this.ButtonArgent = ((Fluent.Button)(target));
     return;
     case 38:
     this.ButtonAzure = ((Fluent.Button)(target));
     return;
     case 39:
     this.ButtonVert = ((Fluent.Button)(target));
     return;
     case 40:
     this.ButtonGules = ((Fluent.Button)(target));
     return;
     case 41:
     this.ButtonSable = ((Fluent.Button)(target));
     return;
     case 42:
     this.GroupLabelModernTinctures = ((Fluent.RibbonGroupBox)(target));
     return;
     case 43:
     this.GroupLabelFurs = ((Fluent.RibbonGroupBox)(target));
     return;
     case 44:
     this.GroupLabelCustomTinctures = ((Fluent.RibbonGroupBox)(target));
     return;
     case 45:
     this.StatusBar = ((System.Windows.Controls.Primitives.StatusBar)(target));
     return;
     case 46:
     this.MainFrame = ((GBlason.Control.Aggregate.CustomGUI)(target));
     return;
     }
     this._contentLoaded = true;
 }
Exemple #19
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\MainWindow.xaml"
                ((WpfApp2.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.RibbonWindow_Closing);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                ((WpfApp2.MainWindow)(target)).Activated += new System.EventHandler(this.RibbonWindow_Activated);

            #line default
            #line hidden
                return;

            case 2:
                this.ribbon = ((Fluent.Ribbon)(target));
                return;

            case 3:
                this.BtnQueryUser = ((Fluent.Button)(target));

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

            #line default
            #line hidden
                return;

            case 4:
                this.BtnAddUser = ((Fluent.Button)(target));

            #line 37 "..\..\MainWindow.xaml"
                this.BtnAddUser.Click += new System.Windows.RoutedEventHandler(this.BtnAddUser_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.BtnModifyUser = ((Fluent.Button)(target));

            #line 38 "..\..\MainWindow.xaml"
                this.BtnModifyUser.Click += new System.Windows.RoutedEventHandler(this.BtnModifyUser_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.SAVE = ((Fluent.Button)(target));

            #line 44 "..\..\MainWindow.xaml"
                this.SAVE.Click += new System.Windows.RoutedEventHandler(this.SAVE_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.READ = ((Fluent.Button)(target));

            #line 45 "..\..\MainWindow.xaml"
                this.READ.Click += new System.Windows.RoutedEventHandler(this.READ_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.DEFAULT = ((Fluent.Button)(target));

            #line 46 "..\..\MainWindow.xaml"
                this.DEFAULT.Click += new System.Windows.RoutedEventHandler(this.DEFAULT_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.BtnQueryDept = ((Fluent.Button)(target));

            #line 52 "..\..\MainWindow.xaml"
                this.BtnQueryDept.Click += new System.Windows.RoutedEventHandler(this.BtnQueryDept_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.BtnAddDept = ((Fluent.Button)(target));

            #line 53 "..\..\MainWindow.xaml"
                this.BtnAddDept.Click += new System.Windows.RoutedEventHandler(this.BtnAddDept_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.BtnModifyDept = ((Fluent.Button)(target));

            #line 54 "..\..\MainWindow.xaml"
                this.BtnModifyDept.Click += new System.Windows.RoutedEventHandler(this.BtnModifyDept_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.BtnSecManager = ((Fluent.Button)(target));

            #line 60 "..\..\MainWindow.xaml"
                this.BtnSecManager.Click += new System.Windows.RoutedEventHandler(this.BtnSecManager_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.BtnModifyPassword = ((Fluent.Button)(target));

            #line 61 "..\..\MainWindow.xaml"
                this.BtnModifyPassword.Click += new System.Windows.RoutedEventHandler(this.BtnModifyPassword_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.c1 = ((DevZest.Windows.Docking.DockControl)(target));

            #line 80 "..\..\MainWindow.xaml"
                this.c1.Loaded += new System.Windows.RoutedEventHandler(this.c1_Loaded);

            #line default
            #line hidden
                return;

            case 15:
                this.Jishu = ((WpfApp2.Jishu)(target));
                return;

            case 16:
                this.Textbox1 = ((WpfApp2.Textbox1)(target));
                return;

            case 17:
                this.FileExplorer = ((WpfApp2.FileExplorer)(target));
                return;

            case 18:
                this.Xitong = ((WpfApp2.Xitong)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #20
0
            /// <summary>
            /// Creates the ribbon menu bar for the html editor.
            /// </summary>
            /// <param name="ribbonMenu">Main ribbon menu.</param>
            public override void CreateRibbonMenuBar(Fluent.Ribbon ribbonMenu)
            {
                foreach (RibbonContextualTabGroup t in ribbonMenu.ContextualGroups)
                {
                    if (t.Name == "tabGroupHtml")
                    {
                        return;
                    }
                }

                // add contextual items for the html editor
                RibbonContextualTabGroup contextualTG = new RibbonContextualTabGroup();

                contextualTG.Name        = "tabGroupHtml";
                contextualTG.BorderBrush = new SolidColorBrush(Colors.Orange);
                contextualTG.Background  = new SolidColorBrush(Colors.OrangeRed);
                contextualTG.Header      = "Html-Editor";

                Binding visibilityBinding = new Binding("ActiveViewModel.SelectedEditorViewModel.IsHtmlEditorViewModelVisible");

                visibilityBinding.Converter = new BooleanToVisibilityConverter();
                visibilityBinding.Mode      = BindingMode.OneWay;
                contextualTG.SetBinding(RibbonContextualTabGroup.VisibilityProperty, visibilityBinding);

                // add the html editor tab item
                RibbonTabItem tab = new RibbonTabItem();

                tab.Group  = contextualTG;
                tab.Header = "Design";

                // font group box
                RibbonGroupBox fontGP = new RibbonGroupBox();

                fontGP.Header = "Font";
                tab.Groups.Add(fontGP);

                #region Button Bold
                Fluent.ToggleButton btnBold = new Fluent.ToggleButton();
                btnBold.Margin         = new System.Windows.Thickness(2, 0, 0, 0);
                btnBold.SizeDefinition = "Large";
                btnBold.LargeIcon      = new System.Windows.Media.Imaging.BitmapImage(
                    new Uri("pack://application:,,,/Tum.PDE.ToolFramework.Modeling.Visualization.VMXExtensions;component/Resources/Images/HtmlEditor/format-text-bold-32.png"));
                btnBold.Text = "Bold";

                Binding btnBoldCmdn = new Binding("ActiveViewModel.SelectedEditorViewModel.HtmlToggleBoldCommand");
                btnBoldCmdn.Mode = BindingMode.OneWay;
                btnBold.SetBinding(Fluent.ToggleButton.CommandProperty, btnBoldCmdn);

                Binding btnBoldIsChecked = new Binding("ActiveViewModel.SelectedEditorViewModel.IsSelectionTextBold");
                btnBoldIsChecked.Mode = BindingMode.TwoWay;
                btnBold.SetBinding(Fluent.ToggleButton.IsCheckedProperty, btnBoldIsChecked);

                fontGP.Items.Add(btnBold);
                #endregion

                #region Button Italic
                Fluent.ToggleButton btnItalic = new Fluent.ToggleButton();
                btnItalic.Margin         = new System.Windows.Thickness(2, 0, 0, 0);
                btnItalic.SizeDefinition = "Large";
                btnItalic.LargeIcon      = new System.Windows.Media.Imaging.BitmapImage(
                    new Uri("pack://application:,,,/Tum.PDE.ToolFramework.Modeling.Visualization.VMXExtensions;component/Resources/Images/HtmlEditor/format-text-italic-32.png"));
                btnItalic.Text = "Italic";

                Binding btnItalicCmdn = new Binding("ActiveViewModel.SelectedEditorViewModel.HtmlToggleItalicCommand");
                btnItalicCmdn.Mode = BindingMode.OneWay;
                btnItalic.SetBinding(Fluent.ToggleButton.CommandProperty, btnItalicCmdn);

                Binding btnItalicIsChecked = new Binding("ActiveViewModel.SelectedEditorViewModel.IsSelectionTextItalic");
                btnItalicIsChecked.Mode = BindingMode.TwoWay;
                btnItalic.SetBinding(Fluent.ToggleButton.IsCheckedProperty, btnItalicIsChecked);

                fontGP.Items.Add(btnItalic);
                #endregion

                #region Button Underline
                Fluent.ToggleButton btnUnderline = new Fluent.ToggleButton();
                btnUnderline.Margin         = new System.Windows.Thickness(2, 0, 0, 0);
                btnUnderline.SizeDefinition = "Large";
                btnUnderline.LargeIcon      = new System.Windows.Media.Imaging.BitmapImage(
                    new Uri("pack://application:,,,/Tum.PDE.ToolFramework.Modeling.Visualization.VMXExtensions;component/Resources/Images/HtmlEditor/format-text-underline-32.png"));
                btnUnderline.Text = "Underline";

                Binding btnUnderlineCmdn = new Binding("ActiveViewModel.SelectedEditorViewModel.HtmlToggleUnderlineCommand");
                btnUnderlineCmdn.Mode = BindingMode.OneWay;
                btnUnderline.SetBinding(Fluent.ToggleButton.CommandProperty, btnUnderlineCmdn);

                Binding btnUnderlineIsChecked = new Binding("ActiveViewModel.SelectedEditorViewModel.IsSelectionTextUnderlined");
                btnUnderlineIsChecked.Mode = BindingMode.TwoWay;
                btnUnderline.SetBinding(Fluent.ToggleButton.IsCheckedProperty, btnUnderlineIsChecked);

                fontGP.Items.Add(btnUnderline);
                #endregion

                // format group box
                RibbonGroupBox formatGP = new RibbonGroupBox();
                formatGP.Header = "Format";
                tab.Groups.Add(formatGP);

                #region Button Decrease Indent
                Fluent.Button btnDecIndent = new Fluent.Button();
                btnDecIndent.SizeDefinition = "Large";
                btnDecIndent.LargeIcon      = new System.Windows.Media.Imaging.BitmapImage(
                    new Uri("pack://application:,,,/Tum.PDE.ToolFramework.Modeling.Visualization.VMXExtensions;component/Resources/Images/HtmlEditor/format-indent-less-32.png"));
                btnDecIndent.Text = "Decrease Indent";

                Binding btnDecIndentCmdn = new Binding("ActiveViewModel.SelectedEditorViewModel.HtmlIndentLessCommand");
                btnDecIndentCmdn.Mode = BindingMode.OneWay;
                btnDecIndent.SetBinding(Fluent.Button.CommandProperty, btnDecIndentCmdn);

                formatGP.Items.Add(btnDecIndent);
                #endregion

                #region Button Increase Indent
                Fluent.Button btnIncIndent = new Fluent.Button();
                btnIncIndent.SizeDefinition = "Large";
                btnIncIndent.LargeIcon      = new System.Windows.Media.Imaging.BitmapImage(
                    new Uri("pack://application:,,,/Tum.PDE.ToolFramework.Modeling.Visualization.VMXExtensions;component/Resources/Images/HtmlEditor/format-indent-more-32.png"));
                btnIncIndent.Text = "Increase Indent";

                Binding btnIncIndentCmdn = new Binding("ActiveViewModel.SelectedEditorViewModel.HtmlIndentMoreCommand");
                btnIncIndentCmdn.Mode = BindingMode.OneWay;
                btnIncIndent.SetBinding(Fluent.Button.CommandProperty, btnIncIndentCmdn);

                formatGP.Items.Add(btnIncIndent);
                #endregion

                // alignment group box
                RibbonGroupBox alignGP = new RibbonGroupBox();
                alignGP.Header = "Alignment";
                tab.Groups.Add(alignGP);

                #region Button Align Left
                Fluent.ToggleButton btnLeft = new Fluent.ToggleButton();
                btnLeft.Margin         = new System.Windows.Thickness(2, 0, 0, 0);
                btnLeft.SizeDefinition = "Large";
                btnLeft.LargeIcon      = new System.Windows.Media.Imaging.BitmapImage(
                    new Uri("pack://application:,,,/Tum.PDE.ToolFramework.Modeling.Visualization.VMXExtensions;component/Resources/Images/HtmlEditor/format-justify-left-32.png"));
                btnLeft.Text = "Left";

                Binding btnLeftCmdn = new Binding("ActiveViewModel.SelectedEditorViewModel.HtmlAlignLeftCommand");
                btnLeftCmdn.Mode = BindingMode.OneWay;
                btnLeft.SetBinding(Fluent.ToggleButton.CommandProperty, btnLeftCmdn);

                Binding btnLeftIsChecked = new Binding("ActiveViewModel.SelectedEditorViewModel.IsSelectionAlignedLeft");
                btnLeftIsChecked.Mode = BindingMode.TwoWay;
                btnLeft.SetBinding(Fluent.ToggleButton.IsCheckedProperty, btnLeftIsChecked);

                alignGP.Items.Add(btnLeft);
                #endregion

                #region Button Align Center
                Fluent.ToggleButton btnCenter = new Fluent.ToggleButton();
                btnCenter.Margin         = new System.Windows.Thickness(2, 0, 0, 0);
                btnCenter.SizeDefinition = "Large";
                btnCenter.LargeIcon      = new System.Windows.Media.Imaging.BitmapImage(
                    new Uri("pack://application:,,,/Tum.PDE.ToolFramework.Modeling.Visualization.VMXExtensions;component/Resources/Images/HtmlEditor/format-justify-center-32.png"));
                btnCenter.Text = "Center";

                Binding btnCenterCmdn = new Binding("ActiveViewModel.SelectedEditorViewModel.HtmlAlignCenterCommand");
                btnCenterCmdn.Mode = BindingMode.OneWay;
                btnCenter.SetBinding(Fluent.ToggleButton.CommandProperty, btnCenterCmdn);

                Binding btnCenterIsChecked = new Binding("ActiveViewModel.SelectedEditorViewModel.IsSelectionAlignedCenter");
                btnCenterIsChecked.Mode = BindingMode.TwoWay;
                btnCenter.SetBinding(Fluent.ToggleButton.IsCheckedProperty, btnCenterIsChecked);

                alignGP.Items.Add(btnCenter);
                #endregion

                #region Button Align Right
                Fluent.ToggleButton btnRight = new Fluent.ToggleButton();
                btnRight.Margin         = new System.Windows.Thickness(2, 0, 0, 0);
                btnRight.SizeDefinition = "Large";
                btnRight.LargeIcon      = new System.Windows.Media.Imaging.BitmapImage(
                    new Uri("pack://application:,,,/Tum.PDE.ToolFramework.Modeling.Visualization.VMXExtensions;component/Resources/Images/HtmlEditor/format-justify-right-32.png"));
                btnRight.Text = "Right";

                Binding btnRightCmdn = new Binding("ActiveViewModel.SelectedEditorViewModel.HtmlAlignRightCommand");
                btnRightCmdn.Mode = BindingMode.OneWay;
                btnRight.SetBinding(Fluent.ToggleButton.CommandProperty, btnRightCmdn);

                Binding btnRightIsChecked = new Binding("ActiveViewModel.SelectedEditorViewModel.IsSelectionAlignedRight");
                btnRightIsChecked.Mode = BindingMode.TwoWay;
                btnRight.SetBinding(Fluent.ToggleButton.IsCheckedProperty, btnRightIsChecked);

                alignGP.Items.Add(btnRight);
                #endregion

                #region Button Align Justify
                Fluent.ToggleButton btnJustify = new Fluent.ToggleButton();
                btnJustify.Margin         = new System.Windows.Thickness(2, 0, 0, 0);
                btnJustify.SizeDefinition = "Large";
                btnJustify.LargeIcon      = new System.Windows.Media.Imaging.BitmapImage(
                    new Uri("pack://application:,,,/Tum.PDE.ToolFramework.Modeling.Visualization.VMXExtensions;component/Resources/Images/HtmlEditor/format-justify-fill-32.png"));
                btnJustify.Text = "Justify";

                Binding btnJustifyCmdn = new Binding("ActiveViewModel.SelectedEditorViewModel.HtmlAlignJustifyCommand");
                btnJustifyCmdn.Mode = BindingMode.OneWay;
                btnJustify.SetBinding(Fluent.ToggleButton.CommandProperty, btnJustifyCmdn);

                Binding btnJustifyIsChecked = new Binding("ActiveViewModel.SelectedEditorViewModel.IsSelectionAlignedJustified");
                btnJustifyIsChecked.Mode = BindingMode.TwoWay;
                btnJustify.SetBinding(Fluent.ToggleButton.IsCheckedProperty, btnJustifyIsChecked);

                alignGP.Items.Add(btnJustify);
                #endregion

                // insert group box
                RibbonGroupBox insertGP = new RibbonGroupBox();
                insertGP.Header = "Insert";
                tab.Groups.Add(insertGP);

                #region Button Hyperlink
                Fluent.Button btnHyperlink = new Fluent.Button();
                btnHyperlink.SizeDefinition = "Large";
                btnHyperlink.LargeIcon      = new System.Windows.Media.Imaging.BitmapImage(
                    new Uri("pack://application:,,,/Tum.PDE.ToolFramework.Modeling.Visualization.VMXExtensions;component/Resources/Images/HtmlEditor/Hyperlink.ico"));
                btnHyperlink.Text = "Hyperlink";

                Binding btnHyperlinkCmdn = new Binding("ActiveViewModel.SelectedEditorViewModel.HtmlInsertHyperlinkCommand");
                btnHyperlinkCmdn.Mode = BindingMode.OneWay;
                btnHyperlink.SetBinding(Fluent.Button.CommandProperty, btnHyperlinkCmdn);

                insertGP.Items.Add(btnHyperlink);
                #endregion

                #region Button Image
                Fluent.Button btnImage = new Fluent.Button();
                btnImage.SizeDefinition = "Large";
                btnImage.LargeIcon      = new System.Windows.Media.Imaging.BitmapImage(
                    new Uri("pack://application:,,,/Tum.PDE.ToolFramework.Modeling.Visualization.VMXExtensions;component/Resources/Images/HtmlEditor/insert-image-32.png"));
                btnImage.Text = "Image";

                Binding btnImageCmdn = new Binding("ActiveViewModel.SelectedEditorViewModel.HtmlInsertImageCommand");
                btnImageCmdn.Mode = BindingMode.OneWay;
                btnImage.SetBinding(Fluent.Button.CommandProperty, btnImageCmdn);

                insertGP.Items.Add(btnImage);
                #endregion

                #region Button List
                Fluent.SplitButton btnList = new SplitButton();
                btnList.SizeDefinition = "Large";
                btnList.LargeIcon      = new System.Windows.Media.Imaging.BitmapImage(
                    new Uri("pack://application:,,,/Tum.PDE.ToolFramework.Modeling.Visualization.VMXExtensions;component/Resources/Images/HtmlEditor/list-32.png"));
                btnList.Text = "List";
                insertGP.Items.Add(btnList);

                Fluent.Button btnBulletedList = new Fluent.Button();
                btnBulletedList.SizeDefinition = "Middle";
                btnBulletedList.Icon           = new System.Windows.Media.Imaging.BitmapImage(
                    new Uri("pack://application:,,,/Tum.PDE.ToolFramework.Modeling.Visualization.VMXExtensions;component/Resources/Images/HtmlEditor/List_BulletsHS.png"));
                btnBulletedList.Text = "Bulleted List";

                Binding btnBulletedListCmdn = new Binding("ActiveViewModel.SelectedEditorViewModel.HtmlInsertBulletListCommand");
                btnBulletedListCmdn.Mode = BindingMode.OneWay;
                btnBulletedList.SetBinding(Fluent.Button.CommandProperty, btnBulletedListCmdn);

                btnList.Items.Add(btnBulletedList);

                Fluent.Button btnNumberedList = new Fluent.Button();
                btnNumberedList.SizeDefinition = "Middle";
                btnNumberedList.Icon           = new System.Windows.Media.Imaging.BitmapImage(
                    new Uri("pack://application:,,,/Tum.PDE.ToolFramework.Modeling.Visualization.VMXExtensions;component/Resources/Images/HtmlEditor/List_NumberedHS.png"));
                btnNumberedList.Text = "Numbered List";

                Binding btnNumberedListCmdn = new Binding("ActiveViewModel.SelectedEditorViewModel.HtmlInsertNumberListCommand");
                btnNumberedListCmdn.Mode = BindingMode.OneWay;
                btnNumberedList.SetBinding(Fluent.Button.CommandProperty, btnNumberedListCmdn);

                btnList.Items.Add(btnNumberedList);
                #endregion

                #region Button Table
                Fluent.Button btnTable = new Fluent.Button();
                btnTable.SizeDefinition = "Large";
                btnTable.LargeIcon      = new System.Windows.Media.Imaging.BitmapImage(
                    new Uri("pack://application:,,,/Tum.PDE.ToolFramework.Modeling.Visualization.VMXExtensions;component/Resources/Images/HtmlEditor/table-32.png"));
                btnTable.Text = "Table";

                Binding btnTableCmdn = new Binding("ActiveViewModel.SelectedEditorViewModel.HtmlInsertTableCommand");
                btnTableCmdn.Mode = BindingMode.OneWay;
                btnTable.SetBinding(Fluent.Button.CommandProperty, btnTableCmdn);

                insertGP.Items.Add(btnTable);
                #endregion

                ribbonMenu.ContextualGroups.Add(contextualTG);
                ribbonMenu.Tabs.Add(tab);

                /*
                 * <fluent:RibbonGroupBox Header="Font">
                 *      <fluent:ToggleButton Text="Bold" Command="{Binding Path=HtmlToggleBoldCommand}" Margin="2,0,0,0" LargeIcon="/Resources/Images/HtmlEditor/format-text-bold-32.png" IsChecked="{Binding Path=IsSelectionTextBold, Mode=TwoWay}" SizeDefinition="Large"/>
                 *      <fluent:ToggleButton Text="Italic" Command="{Binding Path=HtmlToggleItalicCommand}" Margin="2,0,0,0" LargeIcon="/Resources/Images/HtmlEditor/format-text-italic-32.png" IsChecked="{Binding Path=IsSelectionTextItalic, Mode=TwoWay}" SizeDefinition="Large"/>
                 *      <fluent:ToggleButton Text="Underline" Command="{Binding Path=HtmlToggleUnderlineCommand}" Margin="2,0,0,0" LargeIcon="/Resources/Images/HtmlEditor/format-text-underline-32.png" IsChecked="{Binding Path=IsSelectionTextUnderlined, Mode=TwoWay}" SizeDefinition="Large"/>
                 *  </fluent:RibbonGroupBox>
                 *
                 *  <fluent:RibbonGroupBox Header="Format">
                 *      <fluent:Button Text="Decrease Indent" Command="{Binding Path=HtmlIndentLessCommand}" LargeIcon="/Resources/Images/HtmlEditor/format-indent-less-32.png"  SizeDefinition="Large"/>
                 *      <fluent:Button Text="Increase Indent" Command="{Binding Path=HtmlIndentMoreCommand}" LargeIcon="/Resources/Images/HtmlEditor/format-indent-more-32.png" SizeDefinition="Large"/>
                 *  </fluent:RibbonGroupBox>
                 *
                 *  <fluent:RibbonGroupBox Header="Font">
                 *      <fluent:ToggleButton Text="Left" Command="{Binding Path=HtmlAlignLeftCommand}" Margin="2,0,0,0" LargeIcon="/Resources/Images/HtmlEditor/format-justify-left-32.png" IsChecked="{Binding Path=IsSelectionAlignedLeft, Mode=TwoWay}" SizeDefinition="Large"/>
                 *      <fluent:ToggleButton Text="Center" Command="{Binding Path=HtmlAlignCenterCommand}" Margin="2,0,0,0" LargeIcon="/Resources/Images/HtmlEditor/format-justify-center-32.png" IsChecked="{Binding Path=IsSelectionAlignedCenter, Mode=TwoWay}" SizeDefinition="Large"/>
                 *      <fluent:ToggleButton Text="Right" Command="{Binding Path=HtmlAlignRightCommand}" Margin="2,0,0,0" LargeIcon="/Resources/Images/HtmlEditor/format-justify-right-32.png" IsChecked="{Binding Path=IsSelectionAlignedRight, Mode=TwoWay}" SizeDefinition="Large"/>
                 *      <fluent:ToggleButton Text="Justify" Command="{Binding Path=HtmlAlignJustifyCommand}" Margin="2,0,0,0" LargeIcon="/Resources/Images/HtmlEditor/format-justify-fill-32.png" IsChecked="{Binding Path=IsSelectionAlignedJustified, Mode=TwoWay}" SizeDefinition="Large"/>
                 *  </fluent:RibbonGroupBox>
                 *
                 *  <fluent:RibbonGroupBox Header="Insert">
                 *      <fluent:Button Text="Hyperlink" Command="{Binding Path=HtmlInsertHyperlinkCommand}" LargeIcon="/Resources/Images/Ico/Hyperlink.ico"  SizeDefinition="Large"/>
                 *      <fluent:Button Text="Image" Command="{Binding Path=HtmlInsertImageCommand}" LargeIcon="/Resources/Images/HtmlEditor/insert-image-32.png" SizeDefinition="Large"/>
                 *      <fluent:SplitButton Text="List" LargeIcon="/Resources/Images/HtmlEditor/list-32.png" SizeDefinition="Large">
                 *          <fluent:Button Text="Bulleted List" Command="{Binding Path=HtmlInsertBulletListCommand}" Icon="/Resources/Images/HtmlEditor/List_BulletsHS.png" SizeDefinition="Middle"/>
                 *          <fluent:Button Text="Numbered List" Command="{Binding Path=HtmlInsertNumberListCommand}" Icon="/Resources/Images/HtmlEditor/List_NumberedHS.png" SizeDefinition="Middle"/>
                 *      </fluent:SplitButton>
                 *      <fluent:Button Text="Table" Command="{Binding Path=HtmlInsertTableCommand}" LargeIcon="/Resources/Images/HtmlEditor/table-32.png" SizeDefinition="Large"/>
                 *  </fluent:RibbonGroupBox>
                 */
            }
		public static void Open(MainWindow mainWindow, Ribbon ribbon) {
			var qal = new CustomizeQAT();
			qal.Owner = mainWindow;
			qal.MainForm = mainWindow;
			qal.RefreshQATDialog(ribbon);
			qal.ShowDialog();
		}
 /// <summary>
 /// This method needs to overriden in the actual instances of this class to create contextual
 /// or regular ribbon bars if required.
 /// </summary>
 /// <param name="ribbonMenu">Main ribbon menu.</param>
 public abstract void CreateRibbonMenuBar(Ribbon ribbonMenu);
Exemple #23
0
        private static void FindControls(UIElement obj, ref Ribbon ribbon, ref UIElement topLevelElement)
        {
            if (obj == null)
            {
                return;
            }

            var objRibbon = obj as Ribbon;
            if (objRibbon != null)
            {
                ribbon = objRibbon;
            }

            var parentVisual = VisualTreeHelper.GetParent(obj) as UIElement;
            if (parentVisual == null)
            {
                topLevelElement = obj;
            }
            else
            {
                FindControls(parentVisual, ref ribbon, ref topLevelElement);
            }
        }
        void FindControls(UIElement obj, ref Ribbon ribbon, ref UIElement topLevelElement)
        {
            if (obj == null) return;
            Ribbon objRibbon = obj as Ribbon;
            if (objRibbon!=null) ribbon = objRibbon;

            UIElement parentVisual = VisualTreeHelper.GetParent(obj) as UIElement;
            if (parentVisual == null) topLevelElement = obj;
            else FindControls(parentVisual, ref ribbon, ref topLevelElement);            
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\..\MainWindow.xaml"
                ((jg.Editor.MainWindow)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.RibbonWindow_KeyUp);

            #line default
            #line hidden

            #line 12 "..\..\..\MainWindow.xaml"
                ((jg.Editor.MainWindow)(target)).PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.RibbonWindow_PreviewMouseDown);

            #line default
            #line hidden

            #line 14 "..\..\..\MainWindow.xaml"
                ((jg.Editor.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 15 "..\..\..\MainWindow.xaml"
                ((jg.Editor.MainWindow)(target)).Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden

            #line 18 "..\..\..\MainWindow.xaml"
                ((jg.Editor.MainWindow)(target)).Deactivated += new System.EventHandler(this.RibbonWindow_Deactivated);

            #line default
            #line hidden
                return;

            case 12:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 13:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 14:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 15:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 16:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 17:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 18:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 19:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 20:
                this.col1 = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 21:
                this.col5 = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 22:
                this.rowStage = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 23:
                this.row4 = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 24:
                this.ribbon = ((Fluent.Ribbon)(target));
                return;

            case 25:
                this.btnCreate = ((Fluent.Button)(target));

            #line 377 "..\..\..\MainWindow.xaml"
                this.btnCreate.Click += new System.Windows.RoutedEventHandler(this.btnCreate_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.btnLoad = ((Fluent.Button)(target));

            #line 380 "..\..\..\MainWindow.xaml"
                this.btnLoad.Click += new System.Windows.RoutedEventHandler(this.btnLoad_Click);

            #line default
            #line hidden
                return;

            case 27:

            #line 383 "..\..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_8);

            #line default
            #line hidden
                return;

            case 28:

            #line 387 "..\..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_7);

            #line default
            #line hidden
                return;

            case 29:

            #line 421 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnAddKey_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.FileName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 31:
                this.UpdateTime = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 32:
                this.CreateTime = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 33:
                this.txtWidth = ((System.Windows.Controls.TextBox)(target));

            #line 478 "..\..\..\MainWindow.xaml"
                this.txtWidth.LostFocus += new System.Windows.RoutedEventHandler(this.TextBox_LostFocus);

            #line default
            #line hidden

            #line 478 "..\..\..\MainWindow.xaml"
                this.txtWidth.TextInput += new System.Windows.Input.TextCompositionEventHandler(this.TextBox_TextInput);

            #line default
            #line hidden
                return;

            case 34:
                this.txtHeight = ((System.Windows.Controls.TextBox)(target));

            #line 482 "..\..\..\MainWindow.xaml"
                this.txtHeight.LostFocus += new System.Windows.RoutedEventHandler(this.TextBox_LostFocus);

            #line default
            #line hidden

            #line 482 "..\..\..\MainWindow.xaml"
                this.txtHeight.TextInput += new System.Windows.Input.TextCompositionEventHandler(this.TextBox_TextInput);

            #line default
            #line hidden
                return;

            case 35:
                this.colorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target));
                return;

            case 36:
                this.UpdateUser = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 37:
                this.CreateUser = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 38:

            #line 571 "..\..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Window_Closed);

            #line default
            #line hidden
                return;

            case 39:
                this.tabItem1 = ((Fluent.RibbonTabItem)(target));
                return;

            case 40:
                this.OperationGroupBox = ((Fluent.RibbonGroupBox)(target));
                return;

            case 41:
                this.btnPageAdd = ((Fluent.Button)(target));

            #line 601 "..\..\..\MainWindow.xaml"
                this.btnPageAdd.Click += new System.Windows.RoutedEventHandler(this.btnPageAdd_Click);

            #line default
            #line hidden
                return;

            case 42:

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

            #line default
            #line hidden
                return;

            case 43:

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

            #line default
            #line hidden
                return;

            case 44:
                this.btnPageDel = ((Fluent.Button)(target));

            #line 634 "..\..\..\MainWindow.xaml"
                this.btnPageDel.Click += new System.Windows.RoutedEventHandler(this.btnPageDel_Click);

            #line default
            #line hidden
                return;

            case 45:
                this.btnUndo = ((Fluent.Button)(target));

            #line 650 "..\..\..\MainWindow.xaml"
                this.btnUndo.Click += new System.Windows.RoutedEventHandler(this.btnUndo_Click);

            #line default
            #line hidden
                return;

            case 46:
                this.btnRedo = ((Fluent.Button)(target));

            #line 665 "..\..\..\MainWindow.xaml"
                this.btnRedo.Click += new System.Windows.RoutedEventHandler(this.btnRedo_Click);

            #line default
            #line hidden
                return;

            case 47:
                this.toggleButton1 = ((Fluent.SplitButton)(target));
                return;

            case 48:

            #line 689 "..\..\..\MainWindow.xaml"
                ((Fluent.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.AlignButton_Click);

            #line default
            #line hidden
                return;

            case 49:

            #line 690 "..\..\..\MainWindow.xaml"
                ((Fluent.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.AlignButton_Click);

            #line default
            #line hidden
                return;

            case 50:

            #line 691 "..\..\..\MainWindow.xaml"
                ((Fluent.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.AlignButton_Click);

            #line default
            #line hidden
                return;

            case 51:

            #line 692 "..\..\..\MainWindow.xaml"
                ((Fluent.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.AlignButton_Click);

            #line default
            #line hidden
                return;

            case 52:
                this.q = ((Fluent.RibbonGroupBox)(target));
                return;

            case 53:
                this.btnCut = ((Fluent.Button)(target));

            #line 708 "..\..\..\MainWindow.xaml"
                this.btnCut.Click += new System.Windows.RoutedEventHandler(this.btnCut_Click);

            #line default
            #line hidden
                return;

            case 54:
                this.btnCopy = ((Fluent.Button)(target));

            #line 725 "..\..\..\MainWindow.xaml"
                this.btnCopy.Click += new System.Windows.RoutedEventHandler(this.btnCopy_Click);

            #line default
            #line hidden
                return;

            case 55:
                this.btnPaste = ((Fluent.Button)(target));

            #line 740 "..\..\..\MainWindow.xaml"
                this.btnPaste.Click += new System.Windows.RoutedEventHandler(this.btnPaste_Click);

            #line default
            #line hidden
                return;

            case 56:
                this.ViewGroupBox = ((Fluent.RibbonGroupBox)(target));
                return;

            case 57:
                this.Preview = ((Fluent.Button)(target));

            #line 757 "..\..\..\MainWindow.xaml"
                this.Preview.Click += new System.Windows.RoutedEventHandler(this.Preview_Click);

            #line default
            #line hidden
                return;

            case 58:
                this.btnPublish = ((Fluent.Button)(target));

            #line 775 "..\..\..\MainWindow.xaml"
                this.btnPublish.Click += new System.Windows.RoutedEventHandler(this.btnPublish_Click);

            #line default
            #line hidden
                return;

            case 59:
                this.tabItem2 = ((Fluent.RibbonTabItem)(target));
                return;

            case 60:
                this.ResourcesRibbonGroupBox = ((Fluent.RibbonGroupBox)(target));
                return;

            case 61:

            #line 909 "..\..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SplitButton_Click);

            #line default
            #line hidden
                return;

            case 62:

            #line 924 "..\..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SplitButton_Click);

            #line default
            #line hidden
                return;

            case 63:

            #line 938 "..\..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SplitButton_Click);

            #line default
            #line hidden
                return;

            case 64:

            #line 967 "..\..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SplitButton_Click);

            #line default
            #line hidden
                return;

            case 65:
                this.tabItem6 = ((Fluent.RibbonTabItem)(target));
                return;

            case 66:
                this.btnHelp = ((Fluent.Button)(target));

            #line 1257 "..\..\..\MainWindow.xaml"
                this.btnHelp.Click += new System.Windows.RoutedEventHandler(this.btnHelp_Click);

            #line default
            #line hidden
                return;

            case 67:
                this.btnfeedback = ((Fluent.Button)(target));

            #line 1267 "..\..\..\MainWindow.xaml"
                this.btnfeedback.Click += new System.Windows.RoutedEventHandler(this.Button_Click_6);

            #line default
            #line hidden
                return;

            case 68:
                this.treeViewControl1 = ((System.Windows.Controls.TreeView)(target));

            #line 1315 "..\..\..\MainWindow.xaml"
                this.treeViewControl1.PreviewDragEnter += new System.Windows.DragEventHandler(this.TextBlock_PreviewDragEnter);

            #line default
            #line hidden

            #line 1316 "..\..\..\MainWindow.xaml"
                this.treeViewControl1.PreviewDragLeave += new System.Windows.DragEventHandler(this.TextBlock_PreviewDragLeave);

            #line default
            #line hidden

            #line 1317 "..\..\..\MainWindow.xaml"
                this.treeViewControl1.PreviewDragOver += new System.Windows.DragEventHandler(this.treeViewControl1_PreviewDragOver);

            #line default
            #line hidden

            #line 1318 "..\..\..\MainWindow.xaml"
                this.treeViewControl1.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.treeViewControl1_SelectedItemChanged);

            #line default
            #line hidden

            #line 1321 "..\..\..\MainWindow.xaml"
                this.treeViewControl1.Drop += new System.Windows.DragEventHandler(this.PubDropTreeAndBlockEvent);

            #line default
            #line hidden
                return;

            case 69:
                this.scrollViewer = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 70:
                this.grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 71:
                this.scaleTransform = ((System.Windows.Media.ScaleTransform)(target));
                return;

            case 72:
                this.propertyManage1 = ((jg.Editor.Library.Property.PropertyManage)(target));
                return;

            case 73:
                this.controlTimeLine = ((jg.Editor.Library.ControlTimeLine)(target));
                return;

            case 74:
                this.zoomSlider = ((System.Windows.Controls.Slider)(target));

            #line 1428 "..\..\..\MainWindow.xaml"
                this.zoomSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.zoomSlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 75:
                this.ShowNewWin = ((System.Windows.Controls.Grid)(target));
                return;

            case 76:
                this.ProgressEditBusyName = ((jg.Editor.Library.Control.ProgressEditBusy)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #26
0
 /// <summary>
 /// Invoked whenever an unhandled <see cref="E:System.Windows.FrameworkElement.ContextMenuClosing"/> routed event reaches this class in its route. Implement this method to add class handling for this event. 
 /// </summary>
 /// <param name="e">Provides data about the event.</param>
 protected override void OnContextMenuClosing(ContextMenuEventArgs e)
 {
     contextMenuOwner = null;
     base.OnContextMenuClosing(e);
 }
 /// <summary>
 /// This method is called once this docking window becomes inactive. 
 /// This method needs to overriden in the actual instances of this class to hide contextual ribbon bars.
 /// </summary>
 /// <param name="ribbonMenu">Main ribbon menu.</param>
 public virtual void HideRibbonMenu(Ribbon ribbonMenu)
 {
 }
        /// <summary>
        /// Create ribbon menus.
        /// </summary>
        /// <param name="ribbonMenu"></param>
        public override void CreateRibbonMenu(Ribbon ribbonMenu)
        {
            base.CreateRibbonMenu(ribbonMenu);

            // in case the tab group is used for multiple vms, prevent multiple tabs beeing created
            foreach (Fluent.RibbonContextualTabGroup t in ribbonMenu.ContextualGroups)
                if (t.Name == "tabGroupExamplePlugin")
                {
                    exampleTabGroup = t;
                    return;
                }

            // contextual tab, which should only be visible when the example diagram surface is active
            exampleTabGroup = new RibbonContextualTabGroup();
            exampleTabGroup.Header = "Example Tab Group";
            exampleTabGroup.BorderBrush = new SolidColorBrush(System.Windows.Media.Colors.LightBlue);
            exampleTabGroup.Background = new SolidColorBrush(System.Windows.Media.Colors.LightBlue);
            exampleTabGroup.Name = "tabGroupExamplePlugin";

            // create ribbon bar and associate it with the contextual group
            RibbonTabItem exampleTab = new RibbonTabItem();
            exampleTab.Header = "Example View Operations";
            exampleTab.Group = exampleTabGroup;

            // Analyze group
            RibbonGroupBox analyzeGroup = new RibbonGroupBox();
            analyzeGroup.Header = "Analyze";
            exampleTab.Groups.Add(analyzeGroup);

            Fluent.Button buttonAnalyze = new Fluent.Button();
            buttonAnalyze.Text = "Analyze";
            buttonAnalyze.Command = this.command;
            buttonAnalyze.Size = RibbonControlSize.Large;
            buttonAnalyze.LargeIcon = GetImage("prepare_32.png");
            analyzeGroup.Items.Add(buttonAnalyze);

            // View group
            RibbonGroupBox viewGroup = new RibbonGroupBox();
            viewGroup.Header = "View";
            exampleTab.Groups.Add(viewGroup);

            Fluent.ToggleButton buttonTree = new Fluent.ToggleButton();
            buttonTree.Text = "Tree";
            buttonTree.LargeIcon = GetImage("tree-32.png");
            viewGroup.Items.Add(buttonTree);

            Fluent.ToggleButton buttonTable = new Fluent.ToggleButton();
            buttonTable.Text = "Table";
            buttonTable.LargeIcon = GetImage("table-32.png");
            viewGroup.Items.Add(buttonTable);

            // Export group
            RibbonGroupBox exportGroup = new RibbonGroupBox();
            exportGroup.Header = "Export";
            exampleTab.Groups.Add(exportGroup);

            Fluent.Button buttonExportCSV = new Fluent.Button();
            buttonExportCSV.Text = "Export as CSV-File";
            buttonExportCSV.Size = RibbonControlSize.Large;
            buttonExportCSV.LargeIcon = GetImage("csv_32x32.png");
            buttonExportCSV.Command = this.command;
            exportGroup.Items.Add(buttonExportCSV);

            Fluent.Button buttonExportHTML = new Fluent.Button();
            buttonExportHTML.Text = "Export as HTML Website";
            buttonExportHTML.Size = RibbonControlSize.Large;
            buttonExportHTML.LargeIcon = GetImage("html_32x32.png");
            buttonExportHTML.Command = this.command;
            exportGroup.Items.Add(buttonExportHTML);

            Fluent.Button buttonExportPDF = new Fluent.Button();
            buttonExportPDF.Text = "Export as PDF Document";
            buttonExportPDF.Size = RibbonControlSize.Large;
            buttonExportPDF.LargeIcon = GetImage("pdf_32x32.png");
            buttonExportPDF.Command = this.command;
            exportGroup.Items.Add(buttonExportPDF);

            ribbonMenu.ContextualGroups.Add(exampleTabGroup);
            ribbonMenu.Tabs.Add(exampleTab);
        }
Exemple #29
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.layoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.myRibbon = ((Fluent.Ribbon)(target));
                return;

            case 3:
                this.mainTab = ((Fluent.RibbonTabItem)(target));
                return;

            case 4:
                this.btnConnect = ((Fluent.Button)(target));
                return;

            case 5:
                this.btnDisconnect = ((Fluent.Button)(target));
                return;

            case 6:
                this.performanceMonitor = ((Codeplex.Dashboarding.PerformanceMonitor)(target));
                return;

            case 7:
                this.LblDayOfWeek = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.LblDayNumber = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.LblMonth = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.helpTab = ((Fluent.RibbonTabItem)(target));
                return;

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

            case 12:
                this.lstDbList = ((System.Windows.Controls.ListView)(target));
                return;

            case 13:
                this.cmbDBObjects = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 14:
                this.lstTableList = ((System.Windows.Controls.ListView)(target));
                return;

            case 15:
                this.menu = ((System.Windows.Controls.Menu)(target));
                return;

            case 16:
                this.grdMain = ((System.Windows.Controls.Grid)(target));
                return;

            case 17:
                this.tab1 = ((SQLServerCompanion.Controls.TabControlEx)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #30
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 6 "..\..\..\MainWindow.xaml"
                ((jg.Editor.MainWindow)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.RibbonWindow_KeyUp);

            #line default
            #line hidden

            #line 9 "..\..\..\MainWindow.xaml"
                ((jg.Editor.MainWindow)(target)).PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.RibbonWindow_PreviewMouseDown);

            #line default
            #line hidden

            #line 10 "..\..\..\MainWindow.xaml"
                ((jg.Editor.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 11 "..\..\..\MainWindow.xaml"
                ((jg.Editor.MainWindow)(target)).Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden
                return;

            case 8:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 9:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 10:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 11:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 12:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 13:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 14:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 15:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 16:
                this.col1 = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 17:
                this.col5 = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 18:
                this.rowStage = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 19:
                this.row4 = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 20:
                this.tabControl1 = ((System.Windows.Controls.TabControl)(target));
                return;

            case 21:
                this.ribbon = ((Fluent.Ribbon)(target));
                return;

            case 22:
                this.invisibleTabGroup = ((Fluent.RibbonContextualTabGroup)(target));
                return;

            case 23:

            #line 177 "..\..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_8);

            #line default
            #line hidden
                return;

            case 24:

            #line 181 "..\..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_7);

            #line default
            #line hidden
                return;

            case 25:
                this.tabItem1 = ((Fluent.RibbonTabItem)(target));
                return;

            case 26:
                this.Clipboard = ((Fluent.RibbonGroupBox)(target));
                return;

            case 27:
                this.btnCreate = ((System.Windows.Controls.Button)(target));

            #line 342 "..\..\..\MainWindow.xaml"
                this.btnCreate.Click += new System.Windows.RoutedEventHandler(this.btnCreate_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.btnLoad = ((System.Windows.Controls.Button)(target));

            #line 365 "..\..\..\MainWindow.xaml"
                this.btnLoad.Click += new System.Windows.RoutedEventHandler(this.btnLoad_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.btnClone = ((System.Windows.Controls.Button)(target));

            #line 387 "..\..\..\MainWindow.xaml"
                this.btnClone.Click += new System.Windows.RoutedEventHandler(this.btnClone_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.btnPageAdd = ((System.Windows.Controls.Button)(target));

            #line 409 "..\..\..\MainWindow.xaml"
                this.btnPageAdd.Click += new System.Windows.RoutedEventHandler(this.btnPageAdd_Click);

            #line default
            #line hidden
                return;

            case 31:

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

            #line default
            #line hidden
                return;

            case 32:

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

            #line default
            #line hidden
                return;

            case 33:
                this.btnPageDel = ((System.Windows.Controls.Button)(target));

            #line 429 "..\..\..\MainWindow.xaml"
                this.btnPageDel.Click += new System.Windows.RoutedEventHandler(this.btnPageDel_Click);

            #line default
            #line hidden
                return;

            case 34:
                this.btnCut = ((System.Windows.Controls.Button)(target));

            #line 442 "..\..\..\MainWindow.xaml"
                this.btnCut.Click += new System.Windows.RoutedEventHandler(this.btnCut_Click);

            #line default
            #line hidden
                return;

            case 35:
                this.btnCopy = ((System.Windows.Controls.Button)(target));

            #line 465 "..\..\..\MainWindow.xaml"
                this.btnCopy.Click += new System.Windows.RoutedEventHandler(this.btnCopy_Click);

            #line default
            #line hidden
                return;

            case 36:
                this.btnPaste = ((System.Windows.Controls.Button)(target));

            #line 488 "..\..\..\MainWindow.xaml"
                this.btnPaste.Click += new System.Windows.RoutedEventHandler(this.btnPaste_Click);

            #line default
            #line hidden
                return;

            case 37:
                this.Preview = ((System.Windows.Controls.Button)(target));

            #line 511 "..\..\..\MainWindow.xaml"
                this.Preview.Click += new System.Windows.RoutedEventHandler(this.Preview_Click);

            #line default
            #line hidden
                return;

            case 38:
                this.btnPublish = ((System.Windows.Controls.Button)(target));

            #line 525 "..\..\..\MainWindow.xaml"
                this.btnPublish.Click += new System.Windows.RoutedEventHandler(this.btnPublish_Click);

            #line default
            #line hidden
                return;

            case 39:
                this.btnUndo = ((System.Windows.Controls.Button)(target));

            #line 539 "..\..\..\MainWindow.xaml"
                this.btnUndo.Click += new System.Windows.RoutedEventHandler(this.btnUndo_Click);

            #line default
            #line hidden
                return;

            case 40:
                this.btnRedo = ((System.Windows.Controls.Button)(target));

            #line 566 "..\..\..\MainWindow.xaml"
                this.btnRedo.Click += new System.Windows.RoutedEventHandler(this.btnRedo_Click);

            #line default
            #line hidden
                return;

            case 41:
                this.toggleButton1 = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 42:
                this.popup1 = ((System.Windows.Controls.Primitives.Popup)(target));
                return;

            case 43:

            #line 613 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AlignButton_Click);

            #line default
            #line hidden
                return;

            case 44:

            #line 616 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AlignButton_Click);

            #line default
            #line hidden
                return;

            case 45:

            #line 619 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AlignButton_Click);

            #line default
            #line hidden
                return;

            case 46:

            #line 622 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AlignButton_Click);

            #line default
            #line hidden
                return;

            case 47:
                this.tabItem2 = ((Fluent.RibbonTabItem)(target));
                return;

            case 48:
                this.ResourcesRibbonGroupBox = ((Fluent.RibbonGroupBox)(target));
                return;

            case 49:
                this.localImgMenu = ((Fluent.MenuItem)(target));
                return;

            case 50:
                this.localMovieMenu = ((Fluent.MenuItem)(target));
                return;

            case 51:
                this.localSoundMenu = ((Fluent.MenuItem)(target));
                return;

            case 52:
                this.localDocumentMenu = ((Fluent.MenuItem)(target));
                return;

            case 53:
                this.localTPageGroupMenu = ((Fluent.MenuItem)(target));
                return;

            case 54:

            #line 721 "..\..\..\MainWindow.xaml"
                ((Fluent.SplitButton)(target)).Click += new System.Windows.RoutedEventHandler(this.SplitButton_Click);

            #line default
            #line hidden
                return;

            case 55:

            #line 736 "..\..\..\MainWindow.xaml"
                ((Fluent.SplitButton)(target)).Click += new System.Windows.RoutedEventHandler(this.SplitButton_Click);

            #line default
            #line hidden
                return;

            case 56:

            #line 750 "..\..\..\MainWindow.xaml"
                ((Fluent.SplitButton)(target)).Click += new System.Windows.RoutedEventHandler(this.SplitButton_Click);

            #line default
            #line hidden
                return;

            case 57:

            #line 765 "..\..\..\MainWindow.xaml"
                ((Fluent.SplitButton)(target)).Click += new System.Windows.RoutedEventHandler(this.SplitButton_Click);

            #line default
            #line hidden
                return;

            case 58:

            #line 779 "..\..\..\MainWindow.xaml"
                ((Fluent.SplitButton)(target)).Click += new System.Windows.RoutedEventHandler(this.SplitButton_Click);

            #line default
            #line hidden
                return;

            case 59:
                this.Shape001 = ((System.Windows.Shapes.Path)(target));
                return;

            case 60:
                this.Shape002 = ((System.Windows.Shapes.Path)(target));
                return;

            case 61:
                this.Shape003 = ((System.Windows.Shapes.Path)(target));
                return;

            case 62:
                this.Shape004 = ((System.Windows.Shapes.Path)(target));
                return;

            case 63:
                this.Shape005 = ((System.Windows.Shapes.Path)(target));
                return;

            case 64:
                this.Shape006 = ((System.Windows.Shapes.Path)(target));
                return;

            case 65:
                this.Shape007 = ((System.Windows.Shapes.Path)(target));
                return;

            case 66:
                this.Shape008 = ((System.Windows.Shapes.Path)(target));
                return;

            case 67:
                this.Shape009 = ((System.Windows.Shapes.Path)(target));
                return;

            case 68:
                this.Shape010 = ((System.Windows.Shapes.Path)(target));
                return;

            case 69:
                this.Shape011 = ((System.Windows.Shapes.Path)(target));
                return;

            case 70:
                this.Shape012 = ((System.Windows.Shapes.Path)(target));
                return;

            case 71:
                this.Shape013 = ((System.Windows.Shapes.Path)(target));
                return;

            case 72:
                this.Shape014 = ((System.Windows.Shapes.Path)(target));
                return;

            case 73:
                this.Shape015 = ((System.Windows.Shapes.Path)(target));
                return;

            case 74:
                this.Shape016 = ((System.Windows.Shapes.Path)(target));
                return;

            case 75:
                this.Shape017 = ((System.Windows.Shapes.Path)(target));
                return;

            case 76:

            #line 893 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_6);

            #line default
            #line hidden
                return;

            case 77:
                this.treeViewControl1 = ((System.Windows.Controls.TreeView)(target));

            #line 896 "..\..\..\MainWindow.xaml"
                this.treeViewControl1.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.treeViewControl1_SelectedItemChanged);

            #line default
            #line hidden

            #line 897 "..\..\..\MainWindow.xaml"
                this.treeViewControl1.Drop += new System.Windows.DragEventHandler(this.PubDropTreeAndBlockEvent);

            #line default
            #line hidden
                return;

            case 78:
                this.scrollViewer = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 79:
                this.grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 80:
                this.scaleTransform = ((System.Windows.Media.ScaleTransform)(target));
                return;

            case 81:
                this.propertyManage1 = ((jg.Editor.Library.Property.PropertyManage)(target));
                return;

            case 82:

            #line 931 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_5);

            #line default
            #line hidden
                return;

            case 83:

            #line 944 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_5);

            #line default
            #line hidden
                return;

            case 84:

            #line 958 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_5);

            #line default
            #line hidden
                return;

            case 85:

            #line 965 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 86:

            #line 966 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

            case 87:

            #line 967 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_2);

            #line default
            #line hidden
                return;

            case 88:

            #line 968 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_3);

            #line default
            #line hidden
                return;

            case 89:

            #line 969 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_4);

            #line default
            #line hidden
                return;

            case 90:
                this.controlTimeLine = ((jg.Editor.Library.ControlTimeLine)(target));
                return;

            case 91:
                this.zoomSlider = ((System.Windows.Controls.Slider)(target));
                return;

            case 92:
                this.ShowNewWin = ((System.Windows.Controls.Grid)(target));
                return;

            case 93:
                this.ProgressEditBusyName = ((jg.Editor.Library.Control.ProgressEditBusy)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #31
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TestContentControl = ((FluentTest.TestContent)(target));
                return;

            case 3:
                this.ribbon = ((Fluent.Ribbon)(target));
                return;

            case 4:
                this.tabGroup1 = ((Fluent.RibbonContextualTabGroup)(target));
                return;

            case 5:
                this.tabGroup2 = ((Fluent.RibbonContextualTabGroup)(target));
                return;

            case 6:
                this.invisibleTabGroup = ((Fluent.RibbonContextualTabGroup)(target));
                return;

            case 7:
                this.startScreen = ((Fluent.StartScreen)(target));
                return;

            case 8:

            #line 155 "TestContent.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.HandleSaveAsClick);

            #line default
            #line hidden
                return;

            case 9:

            #line 255 "TestContent.xaml"
                ((Fluent.Spinner)(target)).ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.OnSpinnerValueChanged);

            #line default
            #line hidden
                return;

            case 10:

            #line 284 "TestContent.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnHelpClick);

            #line default
            #line hidden
                return;

            case 11:
                this.Clipboard = ((Fluent.RibbonGroupBox)(target));

            #line 328 "TestContent.xaml"
                this.Clipboard.LauncherClick += new System.Windows.RoutedEventHandler(this.OnLauncherButtonClick);

            #line default
            #line hidden
                return;

            case 12:
                this.saveButton = ((Fluent.Button)(target));

            #line 337 "TestContent.xaml"
                this.saveButton.Click += new System.Windows.RoutedEventHandler(this.OnSaveButtonClick);

            #line default
            #line hidden
                return;

            case 13:
                this.buttonWatermark = ((Fluent.DropDownButton)(target));
                return;

            case 14:
                this.WatermarkGallery = ((Fluent.Gallery)(target));
                return;

            case 15:

            #line 360 "TestContent.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.New_Suit_Button_Click);

            #line default
            #line hidden
                return;

            case 16:

            #line 374 "TestContent.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.New_Sequence_Button_Click);

            #line default
            #line hidden
                return;

            case 17:

            #line 389 "TestContent.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.New_Step_Button_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.addChildren = ((Fluent.DropDownButton)(target));
                return;

            case 19:
                this.ChildrenGallery = ((Fluent.Gallery)(target));
                return;

            case 20:

            #line 422 "TestContent.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.New_App_Button_Click);

            #line default
            #line hidden
                return;

            case 21:

            #line 434 "TestContent.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.New_DataSource_Button_Click);

            #line default
            #line hidden
                return;

            case 22:

            #line 447 "TestContent.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.New_Variable_Button_Click);

            #line default
            #line hidden
                return;

            case 23:

            #line 460 "TestContent.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.New_Variable_Button_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.cutButton = ((Fluent.Button)(target));
                return;

            case 25:
                this.copyButton = ((Fluent.Button)(target));
                return;

            case 26:
                this.pasteButton = ((Fluent.Button)(target));

            #line 508 "TestContent.xaml"
                this.pasteButton.Click += new System.Windows.RoutedEventHandler(this.OnFormatPainterClick);

            #line default
            #line hidden
                return;

            case 27:
                this.FunctionsGalleryGroup = ((Fluent.RibbonGroupBox)(target));
                return;

            case 28:
                this.galleryFunctionsInRibbonGallery = ((Fluent.InRibbonGallery)(target));
                return;

            case 29:
                this.functionsFilterAll = ((Fluent.GalleryGroupFilter)(target));
                return;

            case 30:
                this.Font = ((Fluent.RibbonGroupBox)(target));

            #line 537 "TestContent.xaml"
                this.Font.LauncherClick += new System.Windows.RoutedEventHandler(this.OnLauncherButtonClick);

            #line default
            #line hidden
                return;

            case 31:
                this.comboBoxFontName = ((Fluent.ComboBox)(target));
                return;

            case 32:
                this.segoeFont = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 33:
                this.comboBoxFontSize = ((Fluent.ComboBox)(target));
                return;

            case 34:
                this.buttonGrowFont = ((Fluent.Button)(target));
                return;

            case 35:
                this.buttonShrinkFont = ((Fluent.Button)(target));
                return;

            case 36:
                this.buttonChangeCase = ((Fluent.DropDownButton)(target));
                return;

            case 37:
                this.buttonClearFormatting = ((Fluent.Button)(target));
                return;

            case 38:
                this.buttonBold = ((Fluent.ToggleButton)(target));
                return;

            case 39:
                this.buttonItalic = ((Fluent.ToggleButton)(target));
                return;

            case 40:
                this.buttonUnderline = ((Fluent.DropDownButton)(target));
                return;

            case 41:
                this.buttonStrikethrough = ((Fluent.Button)(target));
                return;

            case 42:
                this.buttonSubscript = ((Fluent.Button)(target));
                return;

            case 43:
                this.buttonSuperscript = ((Fluent.Button)(target));
                return;

            case 44:
                this.buttonTextEffects = ((Fluent.DropDownButton)(target));
                return;

            case 45:
                this.buttonTextHighlightColor = ((Fluent.DropDownButton)(target));
                return;

            case 46:
                this.buttonFontColor = ((Fluent.DropDownButton)(target));
                return;

            case 47:
                this.Group = ((Fluent.RibbonGroupBox)(target));
                return;

            case 48:
                this.spinner = ((Fluent.Spinner)(target));
                return;

            case 49:
                this.buttonGreen = ((Fluent.Button)(target));
                return;

            case 50:
                this.buttonGray = ((Fluent.Button)(target));
                return;

            case 51:
                this.buttonYellow = ((Fluent.Button)(target));
                return;

            case 52:
                this.buttonBrown = ((Fluent.Button)(target));
                return;

            case 53:
                this.B = ((Fluent.RibbonGroupBox)(target));

            #line 889 "TestContent.xaml"
                this.B.LauncherClick += new System.Windows.RoutedEventHandler(this.OnLauncherButtonClick);

            #line default
            #line hidden
                return;

            case 54:
                this.groupLL = ((Fluent.RibbonGroupBox)(target));
                return;

            case 55:

            #line 951 "TestContent.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.HandleAddItemToFontsClick);

            #line default
            #line hidden
                return;

            case 56:
                this.InRibbonGallery = ((Fluent.InRibbonGallery)(target));
                return;

            case 57:

            #line 1383 "TestContent.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnEnlargeClick);

            #line default
            #line hidden
                return;

            case 58:

            #line 1388 "TestContent.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnReduceClick);

            #line default
            #line hidden
                return;

            case 59:
                this.UndoButton = ((Fluent.SplitButton)(target));
                return;

            case 60:
                this.ShowDetailButton = ((Fluent.ToggleButton)(target));
                return;

            case 61:
                this.ShowMoreButton = ((Fluent.ToggleButton)(target));
                return;

            case 62:
                this.FirstGalleryGroup = ((Fluent.RibbonGroupBox)(target));
                return;

            case 63:
                this.dropDownGreen = ((Fluent.DropDownButton)(target));
                return;

            case 64:
                this.SecondGalleryGroup = ((Fluent.RibbonGroupBox)(target));
                return;

            case 65:
                this.gallerySampleInRibbonGallery = ((Fluent.InRibbonGallery)(target));
                return;

            case 66:
                this.galleryFilterAll = ((Fluent.GalleryGroupFilter)(target));
                return;

            case 67:
                this.A = ((Fluent.RibbonGroupBox)(target));

            #line 1798 "TestContent.xaml"
                this.A.LauncherClick += new System.Windows.RoutedEventHandler(this.OnLauncherButtonClick);

            #line default
            #line hidden
                return;

            case 68:
                this.GalleryFilterAll = ((Fluent.GalleryGroupFilter)(target));
                return;

            case 69:

            #line 1850 "TestContent.xaml"
                ((Fluent.SplitButton)(target)).Click += new System.Windows.RoutedEventHandler(this.OnSplitClick);

            #line default
            #line hidden
                return;

            case 70:
                this.Default = ((Fluent.RibbonGroupBox)(target));
                return;

            case 71:
                this.Large = ((Fluent.RibbonGroupBox)(target));
                return;

            case 72:
                this.Other = ((Fluent.RibbonGroupBox)(target));
                return;

            case 73:
                this.ZC = ((Fluent.RibbonGroupBox)(target));
                return;

            case 74:
                this.xxx = ((Fluent.RibbonGroupBox)(target));

            #line 2317 "TestContent.xaml"
                this.xxx.LauncherClick += new System.Windows.RoutedEventHandler(this.OnLauncherButtonClick);

            #line default
            #line hidden
                return;

            case 75:
                this.zoomSlider = ((System.Windows.Controls.Slider)(target));

            #line 2628 "TestContent.xaml"
                this.zoomSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ZoomSlider_OnValueChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemple #32
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ThisWindow = ((KtvStudio.MainWindow)(target));
                return;

            case 2:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 3:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 4:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 5:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 6:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 7:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 8:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 9:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 10:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 11:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 12:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 13:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 14:
                this.Menu = ((Fluent.Ribbon)(target));
                return;

            case 15:
                this.Home = ((Fluent.RibbonTabItem)(target));
                return;

            case 16:
                this.InfoManage = ((Fluent.RibbonTabItem)(target));
                return;

            case 17:
                this.SongInfoManage = ((Fluent.RibbonTabItem)(target));
                return;

            case 18:
                this.SingerManage = ((Fluent.RibbonTabItem)(target));
                return;

            case 19:
                this.DownloadManage = ((Fluent.RibbonTabItem)(target));
                return;

            case 20:
                this.DataAnalysisManage = ((Fluent.RibbonTabItem)(target));
                return;

            case 21:
                this.RoomTaskTabItem = ((System.Windows.Controls.TabItem)(target));
                return;

            case 22:
                this.RoomPriceTabItem = ((MahApps.Metro.Controls.MetroTabItem)(target));
                return;

            case 23:

            #line 402 "..\..\MainWindow.xaml"
                ((MahApps.Metro.Controls.MetroAnimatedTabControl)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.RoomTaskRoomTypeTabControl_SelectionChanged);

            #line default
            #line hidden
                return;

            case 24:

            #line 420 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.DataGrid)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.RoomTaskDataGrid_SelectionChanged);

            #line default
            #line hidden

            #line 421 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.DataGrid)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.RoomTaskDataGrid_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 25:

            #line 497 "..\..\MainWindow.xaml"
                ((MahApps.Metro.Controls.MetroAnimatedTabControl)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.RoomTypeTabControl_SelectionChanged);

            #line default
            #line hidden
                return;

            case 26:

            #line 515 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.DataGrid)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.RoomInfoSourceDataGrid_MouseDoubleClick);

            #line default
            #line hidden

            #line 516 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.DataGrid)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DataGrid_SelectionChanged);

            #line default
            #line hidden
                return;

            case 27:
                this.SongManageUc = ((KtvStudio.Views.SongManageUc)(target));
                return;

            case 28:

            #line 567 "..\..\MainWindow.xaml"
                ((MahApps.Metro.Controls.MetroAnimatedTabControl)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.SingerAreaFilterTabControl_SelectionChanged);

            #line default
            #line hidden
                return;

            case 29:

            #line 586 "..\..\MainWindow.xaml"
                ((MahApps.Metro.Controls.MetroAnimatedTabControl)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.SingerInitialFilterTabControl_SelectionChanged);

            #line default
            #line hidden
                return;

            case 30:

            #line 624 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.DataGrid)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.SingerInfoSourceDataGrid_MouseDoubleClick);

            #line default
            #line hidden

            #line 625 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.DataGrid)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.SingerInfoDataGrid_SelectionChanged);

            #line default
            #line hidden
                return;

            case 31:
                this.DownloadRatioProgressBar = ((System.Windows.Controls.ProgressBar)(target));
                return;

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

            case 33:
                this.DataAnalysisManageUc = ((KtvStudio.Views.DataAnalysisManageUc)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #33
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 5 "..\..\MainWindow.xaml"
                ((DACK.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.RibbonWindow_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.ribbon = ((Fluent.Ribbon)(target));
                return;

            case 3:
                this.btnAddCategory = ((Fluent.Button)(target));

            #line 25 "..\..\MainWindow.xaml"
                this.btnAddCategory.Click += new System.Windows.RoutedEventHandler(this.btnAddCategory_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.btnAddProduct = ((Fluent.Button)(target));

            #line 34 "..\..\MainWindow.xaml"
                this.btnAddProduct.Click += new System.Windows.RoutedEventHandler(this.btnAddProduct_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.btnDeleteProduct = ((Fluent.Button)(target));
                return;

            case 6:
                this.btnUpdateProduct = ((Fluent.Button)(target));
                return;

            case 7:
                this.btnAddCustomer = ((Fluent.Button)(target));

            #line 49 "..\..\MainWindow.xaml"
                this.btnAddCustomer.Click += new System.Windows.RoutedEventHandler(this.btnAddCustomer_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.btnCreateBill = ((Fluent.Button)(target));
                return;

            case 9:
                this.btnDeleteBill = ((Fluent.Button)(target));
                return;

            case 10:
                this.btnUpdateStateBill = ((Fluent.Button)(target));
                return;

            case 11:
                this.btnAddPromotions = ((Fluent.Button)(target));
                return;

            case 12:
                this.btnDeletePromotions = ((Fluent.Button)(target));
                return;

            case 13:
                this.btnUpdatePromotions = ((Fluent.Button)(target));
                return;

            case 14:
                this.btnCreateCoupons = ((Fluent.Button)(target));
                return;

            case 15:
                this.btnByProduct = ((Fluent.Button)(target));
                return;

            case 16:
                this.btnByRevenue = ((Fluent.Button)(target));
                return;

            case 17:
                this.tabs = ((System.Windows.Controls.TabControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #34
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ribbonWindow = ((WpfSchedule.MainWindow)(target));

            #line 7 "..\..\MainWindow.xaml"
                this.ribbonWindow.SizeChanged += new System.Windows.SizeChangedEventHandler(this.ribbonWindow_SizeChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.ribbon = ((Fluent.Ribbon)(target));
                return;

            case 3:
                this.r1 = ((Fluent.RadioButton)(target));

            #line 35 "..\..\MainWindow.xaml"
                this.r1.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);

            #line default
            #line hidden
                return;

            case 4:
                this.r2 = ((Fluent.RadioButton)(target));

            #line 39 "..\..\MainWindow.xaml"
                this.r2.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);

            #line default
            #line hidden
                return;

            case 5:
                this.r3 = ((Fluent.RadioButton)(target));

            #line 43 "..\..\MainWindow.xaml"
                this.r3.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);

            #line default
            #line hidden
                return;

            case 6:
                this.r4 = ((Fluent.RadioButton)(target));

            #line 47 "..\..\MainWindow.xaml"
                this.r4.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);

            #line default
            #line hidden
                return;

            case 7:
                this.panelGroups = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 8:
                this.labelGroup = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.btnWeekLeft = ((System.Windows.Controls.Button)(target));

            #line 73 "..\..\MainWindow.xaml"
                this.btnWeekLeft.Click += new System.Windows.RoutedEventHandler(this.btnWeekLeft_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.labelWeekState = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.btnWeekRight = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 12:
                this.myScrollViewer = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 13:
                this.panelSchedule = ((System.Windows.Controls.WrapPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #35
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ribbon = ((Fluent.Ribbon)(target));
                return;

            case 2:
                this.homeTabItem = ((Fluent.RibbonTabItem)(target));
                return;

            case 3:
                this.themesGroupBox = ((Fluent.RibbonGroupBox)(target));
                return;

            case 4:
                this.silverThemeBtn = ((Fluent.Button)(target));

            #line 60 "..\..\MainWindowContent.xaml"
                this.silverThemeBtn.Click += new System.Windows.RoutedEventHandler(this.silverThemeBtn_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.blackThemeBtn = ((Fluent.Button)(target));

            #line 63 "..\..\MainWindowContent.xaml"
                this.blackThemeBtn.Click += new System.Windows.RoutedEventHandler(this.blackThemeBtn_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.blueThemeBtn = ((Fluent.Button)(target));

            #line 66 "..\..\MainWindowContent.xaml"
                this.blueThemeBtn.Click += new System.Windows.RoutedEventHandler(this.blueThemeBtn_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.DontUseDwm = ((Fluent.CheckBox)(target));

            #line 67 "..\..\MainWindowContent.xaml"
                this.DontUseDwm.Click += new System.Windows.RoutedEventHandler(this.DontUseDwm_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.memoryGroupBox = ((Fluent.RibbonGroupBox)(target));
                return;

            case 9:
                this.releaseSelfMmryBtn = ((Fluent.Button)(target));
                return;

            case 10:
                this.releaseAllMmryBtn = ((Fluent.Button)(target));
                return;

            case 11:
                this.ViewTabItem = ((Fluent.RibbonTabItem)(target));
                return;

            case 12:
                this.displayRangeGroupBox = ((Fluent.RibbonGroupBox)(target));
                return;

            case 13:
                this.imageGallery = ((Hywire.ImageProcessing.ImageDisplayer.View.ImageGallery)(target));
                return;
            }
            this._contentLoaded = true;
        }
 /// <summary>
 /// This method is called once this docking window becomes active. 
 /// This method needs to overriden in the actual instances of this class to show contextual ribbon bars if required.
 /// </summary>
 /// <param name="ribbonMenu">Main ribbon menu.</param>
 public virtual void ShowRibbonMenu(Ribbon ribbonMenu)
 {
 }
Exemple #37
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((WpfQuery.MainWindow)(target));

            #line 13 "..\..\MainWindow.xaml"
                this.window.Closed += new System.EventHandler(this.window_Closed);

            #line default
            #line hidden
                return;

            case 2:
                this.ribbon = ((Fluent.Ribbon)(target));
                return;

            case 3:

            #line 31 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnExitSystem);

            #line default
            #line hidden
                return;

            case 4:
                this.btnLogin = ((Fluent.Button)(target));

            #line 38 "..\..\MainWindow.xaml"
                this.btnLogin.Click += new System.Windows.RoutedEventHandler(this.Login);

            #line default
            #line hidden
                return;

            case 5:

            #line 41 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Setting);

            #line default
            #line hidden
                return;

            case 6:

            #line 42 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.About);

            #line default
            #line hidden
                return;

            case 7:
                this.btnSkin = ((Fluent.Button)(target));

            #line 45 "..\..\MainWindow.xaml"
                this.btnSkin.Click += new System.Windows.RoutedEventHandler(this.SkinClick);

            #line default
            #line hidden
                return;

            case 8:

            #line 46 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnExitSystem);

            #line default
            #line hidden
                return;

            case 9:

            #line 53 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.IncludeQuery);

            #line default
            #line hidden
                return;

            case 10:

            #line 54 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.RankQuery);

            #line default
            #line hidden
                return;

            case 11:

            #line 55 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.TitleQuery);

            #line default
            #line hidden
                return;

            case 12:

            #line 56 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.RankStat);

            #line default
            #line hidden
                return;

            case 13:

            #line 59 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PlatformQuery);

            #line default
            #line hidden
                return;

            case 14:

            #line 60 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ConditionQuery);

            #line default
            #line hidden
                return;

            case 15:

            #line 61 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.KeyCover);

            #line default
            #line hidden
                return;

            case 16:

            #line 64 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BasicInfo);

            #line default
            #line hidden
                return;

            case 17:

            #line 65 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.LogParser);

            #line default
            #line hidden
                return;

            case 18:

            #line 68 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.KeyDig);

            #line default
            #line hidden
                return;

            case 19:

            #line 69 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SentenceSplit);

            #line default
            #line hidden
                return;

            case 20:

            #line 70 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Post);

            #line default
            #line hidden
                return;

            case 21:

            #line 71 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Gather);

            #line default
            #line hidden
                return;

            case 22:

            #line 72 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DownloadWeb);

            #line default
            #line hidden
                return;

            case 23:

            #line 73 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Downword);

            #line default
            #line hidden
                return;

            case 24:

            #line 74 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.RelatedSearch);

            #line default
            #line hidden
                return;

            case 25:

            #line 80 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BaiduIndex);

            #line default
            #line hidden
                return;

            case 26:

            #line 81 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.KeywordAnalyze);

            #line default
            #line hidden
                return;

            case 27:

            #line 87 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.IISConfig);

            #line default
            #line hidden
                return;

            case 28:

            #line 88 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Ping);

            #line default
            #line hidden
                return;

            case 29:

            #line 94 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BaiduAccount);

            #line default
            #line hidden
                return;

            case 30:

            #line 97 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BDKeywordRecommend);

            #line default
            #line hidden
                return;

            case 31:

            #line 98 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CreativeCollection);

            #line default
            #line hidden
                return;

            case 32:

            #line 101 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BDWMInterest);

            #line default
            #line hidden
                return;

            case 33:

            #line 104 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SogouAccount);

            #line default
            #line hidden
                return;

            case 34:

            #line 105 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SogouKRService);

            #line default
            #line hidden
                return;

            case 35:
                this.dockManager = ((Xceed.Wpf.AvalonDock.DockingManager)(target));
                return;

            case 36:
                this.defaultBrowser = ((System.Windows.Controls.WebBrowser)(target));
                return;
            }
            this._contentLoaded = true;
        }
        /// <summary>
        /// This method needs to overriden in the actual instances of this class to create contextual
        /// or regular ribbon bars if required.
        /// </summary>
        /// <param name="ribbonMenu">Main ribbon menu.</param>
        public virtual void CreateRibbonMenu(Ribbon ribbonMenu)
        {
            Ribbon = ribbonMenu;

            IsRibbonMenuInitialized = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.ribbon = ((Fluent.Ribbon)(target));
     return;
     case 2:
     this.backStageTaItemAutoFilter = ((Fluent.BackstageTabItem)(target));
     return;
     case 3:
     this.backStageTaItemDashboard = ((Fluent.BackstageTabItem)(target));
     return;
     case 4:
     this.backStageTaItemCopyPaste = ((Fluent.BackstageTabItem)(target));
     return;
     case 5:
     this.backStageTaItemOther = ((Fluent.BackstageTabItem)(target));
     return;
     }
     this._contentLoaded = true;
 }