private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            //(ribbon.ContextMenu.Items[0] as System.Windows.Controls.Ribbon.RibbonMenuItem).Click -= DefaultToolbar_Click;
            //(ribbon.ContextMenu.Items[0] as System.Windows.Controls.Ribbon.RibbonMenuItem).Click += DefaultToolbar_Click;

            if (this.ribbonMenuItem == null)
            {
                this.ribbonMenuItem = new System.Windows.Controls.Ribbon.RibbonMenuItem()
                {
                    Header      = string.Format("{0}(_V)", "빠른실행 표시".Translate("")),
                    IsCheckable = true,
                    IsChecked   = true
                };

                this.ribbonMenuItem.Click += RibbonMenuItem_Click;
                //ribbon.ContextMenu.Items.Add(this.ribbonMenuItem);
            }

            try
            {
                this.SetRibbon();
            }
            catch (Exception ex)
            {
                (this).WindowsMessageBoxShow(Application.Current.Windows[0], ex);
            }
        }
        private void RibbonMenuItem_Click(object sender, RoutedEventArgs e)
        {
            RibbonMenuItem ribbonMenuItem;

            ribbonMenuItem = (sender as RibbonMenuItem);

            //ribbonMenuItem.IsChecked = !ribbonMenuItem.IsChecked;

            //ribbon.ShowQuickAccessToolBarOnTop = true;

            //if (ribbonMenuItem.IsChecked)
            //    ribbon.Margin = new Thickness(0, 0, 0, 0);
            //else
            //    ribbon.Margin = new Thickness(0, -22, 0, 0);
        }
Пример #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.RibbonWin = ((System.Windows.Controls.Ribbon.Ribbon)(target));
                return;

            case 2:
                this.Employee = ((System.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 3:
                this.ButtonMaintainEmployees = ((System.Windows.Controls.Ribbon.RibbonMenuItem)(target));

            #line 25 "..\..\..\Main Forms\frmHumanResources.xaml"
                this.ButtonMaintainEmployees.Click += new System.Windows.RoutedEventHandler(this.ButtonMaintainEmployees_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.ButtonMaintainSupervisors = ((System.Windows.Controls.Ribbon.RibbonMenuItem)(target));
                return;

            case 5:
                this.ButtonMaintainRepresentatives = ((System.Windows.Controls.Ribbon.RibbonMenuItem)(target));
                return;

            case 6:
                this.Dashboard = ((System.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 7:
                this.UIPanelHR = ((System.Windows.Controls.DockPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.RibbonWin = ((System.Windows.Controls.Ribbon.Ribbon)(target));
                return;

            case 2:
                this.Save = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 3:
                this.Undo = ((System.Windows.Controls.Ribbon.RibbonSplitButton)(target));
                return;

            case 4:
                this.Redo = ((System.Windows.Controls.Ribbon.RibbonSplitButton)(target));
                return;

            case 5:
                this.Employee = ((System.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 6:
                this.ButtonAddEmployee = ((System.Windows.Controls.Ribbon.RibbonMenuItem)(target));
                return;

            case 7:
                this.ButtonEditEmployee = ((System.Windows.Controls.Ribbon.RibbonMenuItem)(target));
                return;

            case 8:
                this.ButtonDeleteEmployee = ((System.Windows.Controls.Ribbon.RibbonMenuItem)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

            case 2:
                this.PaintCanvas = ((System.Windows.Controls.Canvas)(target));

            #line 31 "..\..\MainWindow.xaml"
                this.PaintCanvas.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.PaintCanvas_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 31 "..\..\MainWindow.xaml"
                this.PaintCanvas.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.PaintCanvas_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 32 "..\..\MainWindow.xaml"
                this.PaintCanvas.MouseMove += new System.Windows.Input.MouseEventHandler(this.PaintCanvas_MouseMove);

            #line default
            #line hidden

            #line 32 "..\..\MainWindow.xaml"
                this.PaintCanvas.KeyDown += new System.Windows.Input.KeyEventHandler(this.PaintCanvas_KeyDown);

            #line default
            #line hidden

            #line 32 "..\..\MainWindow.xaml"
                this.PaintCanvas.KeyUp += new System.Windows.Input.KeyEventHandler(this.PaintCanvas_KeyUp);

            #line default
            #line hidden
                return;

            case 3:

            #line 43 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.btnNew_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 44 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.btnOpenImage_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 45 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.btnSaveImage_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 46 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.btnExit_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.btnOpenImage = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 8:
                this.btnSaveImage = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 55 "..\..\MainWindow.xaml"
                this.btnSaveImage.Click += new System.Windows.RoutedEventHandler(this.btnSaveImage_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.btnUndo = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 10:
                this.btnRedo = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 11:
                this.btnClearAll = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 12:
                this.btnDelete = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 13:
                this.btnSelect = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 64 "..\..\MainWindow.xaml"
                this.btnSelect.Click += new System.Windows.RoutedEventHandler(this.btnSelect_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.btnCopy = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 15:
                this.btnPaste = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 16:
                this.btnCut = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 17:
                this.btnLineTool = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 18:
                this.btnRectangleTool = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 19:
                this.btnEllipseTool = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 20:
                this.btnArrowTool = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 21:
                this.cbShapePlugin = ((System.Windows.Controls.ComboBox)(target));

            #line 100 "..\..\MainWindow.xaml"
                this.cbShapePlugin.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbShapePlugin_SelectionChanged);

            #line default
            #line hidden
                return;

            case 22:
                this.btnLoadShapePlugin = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 23:
                this.btnStar = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 24:
                this.btnInsertText = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 25:
                this.cbFontText = ((System.Windows.Controls.ComboBox)(target));

            #line 117 "..\..\MainWindow.xaml"
                this.cbFontText.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbFontText_SelectionChanged);

            #line default
            #line hidden
                return;

            case 26:
                this.cbSizeText = ((System.Windows.Controls.ComboBox)(target));

            #line 118 "..\..\MainWindow.xaml"
                this.cbSizeText.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbSizeText_SelectionChanged);

            #line default
            #line hidden
                return;

            case 27:
                this.btnBoldText = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 119 "..\..\MainWindow.xaml"
                this.btnBoldText.Click += new System.Windows.RoutedEventHandler(this.btnBoldText_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.btnItalicText = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 120 "..\..\MainWindow.xaml"
                this.btnItalicText.Click += new System.Windows.RoutedEventHandler(this.btnItalicText_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.btnUnderlineText = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 30:
                this.btnStrokeColor = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 31:
                this.btnFillColor = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 137 "..\..\MainWindow.xaml"
                this.btnFillColor.Click += new System.Windows.RoutedEventHandler(this.btnFillColor_Click);

            #line default
            #line hidden
                return;

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

            #line 145 "..\..\MainWindow.xaml"
                this.colorPicker.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler <System.Nullable <System.Windows.Media.Color> >(this.colorPicker_SelectedColorChanged);

            #line default
            #line hidden
                return;

            case 33:
                this.btnColorNoneColor = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 34:
                this.btnColorFFED1C24 = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 35:
                this.btnColorFF00A2E8 = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 36:
                this.btnColorFF3F48CC = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 37:
                this.btnColorFFA349A4 = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 38:
                this.btnColorFF22B14C = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 39:
                this.btnColorFFFF7F27 = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 40:
                this.btnColorFFFFC90E = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 41:
                this.cbFillStyle = ((System.Windows.Controls.ComboBox)(target));

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

            #line default
            #line hidden
                return;

            case 42:
                this.btnFill = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 43:
                this.ribbonMenuSize = ((System.Windows.Controls.Ribbon.RibbonMenuButton)(target));
                return;

            case 44:
                this.btnStroke1 = ((System.Windows.Controls.Ribbon.RibbonMenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 45:
                this.btnStroke2 = ((System.Windows.Controls.Ribbon.RibbonMenuItem)(target));

            #line 183 "..\..\MainWindow.xaml"
                this.btnStroke2.Click += new System.Windows.RoutedEventHandler(this.btnStroke2_Click);

            #line default
            #line hidden
                return;

            case 46:
                this.btnStroke3 = ((System.Windows.Controls.Ribbon.RibbonMenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 47:
                this.btnStroke4 = ((System.Windows.Controls.Ribbon.RibbonMenuItem)(target));

            #line 185 "..\..\MainWindow.xaml"
                this.btnStroke4.Click += new System.Windows.RoutedEventHandler(this.btnStroke4_Click);

            #line default
            #line hidden
                return;

            case 48:
                this.cbBorderStyle = ((System.Windows.Controls.ComboBox)(target));

            #line 189 "..\..\MainWindow.xaml"
                this.cbBorderStyle.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbBorderStyle_SelectionChanged);

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