예제 #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.mnTest = ((System.Windows.Controls.MenuItem)(target));
     
     #line 12 "..\..\MainWindow.xaml"
     this.mnTest.Click += new System.Windows.RoutedEventHandler(this.mnTest_Click);
     
     #line default
     #line hidden
     return;
     case 2:
     this.mnSetting = ((System.Windows.Controls.MenuItem)(target));
     
     #line 13 "..\..\MainWindow.xaml"
     this.mnSetting.Click += new System.Windows.RoutedEventHandler(this.mnSetting_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.mnExit = ((System.Windows.Controls.MenuItem)(target));
     
     #line 15 "..\..\MainWindow.xaml"
     this.mnExit.Click += new System.Windows.RoutedEventHandler(this.mnExit_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.mnPanel = ((System.Windows.Controls.MenuItem)(target));
     
     #line 19 "..\..\MainWindow.xaml"
     this.mnPanel.Click += new System.Windows.RoutedEventHandler(this.mnPanel_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.sbCoord = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 6:
     this.sbTool = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 7:
     this.tbtTop = ((System.Windows.Controls.ToolBarTray)(target));
     return;
     case 8:
     this.tbBoards = ((System.Windows.Controls.ToolBar)(target));
     return;
     case 9:
     this.btNewBoard = ((System.Windows.Controls.Button)(target));
     
     #line 36 "..\..\MainWindow.xaml"
     this.btNewBoard.Click += new System.Windows.RoutedEventHandler(this.btNewBoard_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.btFirstBoard = ((System.Windows.Controls.Button)(target));
     return;
     case 11:
     this.btPrevBoard = ((System.Windows.Controls.Button)(target));
     return;
     case 12:
     this.tbCurrentBoard = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 13:
     this.btNextBoard = ((System.Windows.Controls.Button)(target));
     return;
     case 14:
     this.btLastBoard = ((System.Windows.Controls.Button)(target));
     return;
     case 15:
     this.tbShapeSetting = ((System.Windows.Controls.ToolBar)(target));
     return;
     case 16:
     this.cbStrokeColor = ((BoardEditor.BrushComboBox)(target));
     return;
     case 17:
     this.cbFillColor = ((BoardEditor.BrushComboBox)(target));
     return;
     case 18:
     this.cbThickness = ((BoardEditor.ThicknessComboBox)(target));
     return;
     case 19:
     this.cbDash = ((BoardEditor.DashComboBox)(target));
     return;
     case 20:
     this.tbFontSetting = ((System.Windows.Controls.ToolBar)(target));
     return;
     case 21:
     this.cbFontFamaly = ((BoardEditor.FontComboBox)(target));
     return;
     case 22:
     this.cbFontSize = ((System.Windows.Controls.ComboBox)(target));
     
     #line 78 "..\..\MainWindow.xaml"
     this.cbFontSize.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbFont_SelectionChanged);
     
     #line default
     #line hidden
     
     #line 79 "..\..\MainWindow.xaml"
     this.cbFontSize.GotFocus += new System.Windows.RoutedEventHandler(this.cbSetting_GotFocus);
     
     #line default
     #line hidden
     return;
     case 23:
     this.spRight = ((System.Windows.Controls.Grid)(target));
     return;
     case 24:
     this.lbShapes = ((System.Windows.Controls.ListBox)(target));
     
     #line 126 "..\..\MainWindow.xaml"
     this.lbShapes.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lbShapes_SelectionChanged);
     
     #line default
     #line hidden
     
     #line 127 "..\..\MainWindow.xaml"
     this.lbShapes.KeyDown += new System.Windows.Input.KeyEventHandler(this.lbShapes_KeyDown);
     
     #line default
     #line hidden
     
     #line 128 "..\..\MainWindow.xaml"
     this.lbShapes.GotFocus += new System.Windows.RoutedEventHandler(this.lbShapes_GotFocus);
     
     #line default
     #line hidden
     return;
     case 25:
     this.lbBoards = ((System.Windows.Controls.ListBox)(target));
     return;
     case 26:
     this.tbtLeft = ((System.Windows.Controls.ToolBarTray)(target));
     return;
     case 27:
     this.tbInput = ((System.Windows.Controls.ToolBar)(target));
     return;
     case 28:
     this.rbType = ((System.Windows.Controls.RadioButton)(target));
     
     #line 139 "..\..\MainWindow.xaml"
     this.rbType.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);
     
     #line default
     #line hidden
     return;
     case 29:
     this.rbInk = ((System.Windows.Controls.RadioButton)(target));
     
     #line 145 "..\..\MainWindow.xaml"
     this.rbInk.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);
     
     #line default
     #line hidden
     return;
     case 30:
     this.rbPen = ((System.Windows.Controls.RadioButton)(target));
     
     #line 152 "..\..\MainWindow.xaml"
     this.rbPen.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);
     
     #line default
     #line hidden
     return;
     case 31:
     this.rbLine = ((System.Windows.Controls.RadioButton)(target));
     
     #line 158 "..\..\MainWindow.xaml"
     this.rbLine.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);
     
     #line default
     #line hidden
     return;
     case 32:
     this.rbRect = ((System.Windows.Controls.RadioButton)(target));
     
     #line 164 "..\..\MainWindow.xaml"
     this.rbRect.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);
     
     #line default
     #line hidden
     return;
     case 33:
     this.rbRoundRect = ((System.Windows.Controls.RadioButton)(target));
     
     #line 170 "..\..\MainWindow.xaml"
     this.rbRoundRect.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);
     
     #line default
     #line hidden
     return;
     case 34:
     this.rbEllipse = ((System.Windows.Controls.RadioButton)(target));
     
     #line 176 "..\..\MainWindow.xaml"
     this.rbEllipse.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);
     
     #line default
     #line hidden
     return;
     case 35:
     this.rbLabel = ((System.Windows.Controls.RadioButton)(target));
     
     #line 182 "..\..\MainWindow.xaml"
     this.rbLabel.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);
     
     #line default
     #line hidden
     return;
     case 36:
     this.tbEdit = ((System.Windows.Controls.ToolBar)(target));
     return;
     case 37:
     this.rbSelect = ((System.Windows.Controls.RadioButton)(target));
     
     #line 190 "..\..\MainWindow.xaml"
     this.rbSelect.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);
     
     #line default
     #line hidden
     return;
     case 38:
     this.rbErase = ((System.Windows.Controls.RadioButton)(target));
     
     #line 196 "..\..\MainWindow.xaml"
     this.rbErase.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);
     
     #line default
     #line hidden
     return;
     case 39:
     this.rbRemove = ((System.Windows.Controls.RadioButton)(target));
     
     #line 202 "..\..\MainWindow.xaml"
     this.rbRemove.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);
     
     #line default
     #line hidden
     return;
     case 40:
     this.btDeleteText = ((System.Windows.Controls.Button)(target));
     
     #line 206 "..\..\MainWindow.xaml"
     this.btDeleteText.Click += new System.Windows.RoutedEventHandler(this.btDelete_Click);
     
     #line default
     #line hidden
     return;
     case 41:
     this.btDeleteNotes = ((System.Windows.Controls.Button)(target));
     
     #line 209 "..\..\MainWindow.xaml"
     this.btDeleteNotes.Click += new System.Windows.RoutedEventHandler(this.btDelete_Click);
     
     #line default
     #line hidden
     return;
     case 42:
     this.btDeleteShapes = ((System.Windows.Controls.Button)(target));
     
     #line 212 "..\..\MainWindow.xaml"
     this.btDeleteShapes.Click += new System.Windows.RoutedEventHandler(this.btDelete_Click);
     
     #line default
     #line hidden
     return;
     case 43:
     this.btDeleteAll = ((System.Windows.Controls.Button)(target));
     
     #line 215 "..\..\MainWindow.xaml"
     this.btDeleteAll.Click += new System.Windows.RoutedEventHandler(this.btDelete_Click);
     
     #line default
     #line hidden
     return;
     case 44:
     this.inkBoard = ((System.Windows.Controls.InkCanvas)(target));
     
     #line 221 "..\..\MainWindow.xaml"
     this.inkBoard.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.inkBoard_MouseDown);
     
     #line default
     #line hidden
     
     #line 222 "..\..\MainWindow.xaml"
     this.inkBoard.MouseMove += new System.Windows.Input.MouseEventHandler(this.inkBoard_MouseMove);
     
     #line default
     #line hidden
     
     #line 223 "..\..\MainWindow.xaml"
     this.inkBoard.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.inkBoard_MouseUp);
     
     #line default
     #line hidden
     
     #line 224 "..\..\MainWindow.xaml"
     this.inkBoard.MouseEnter += new System.Windows.Input.MouseEventHandler(this.inkBoard_MouseEnter);
     
     #line default
     #line hidden
     
     #line 225 "..\..\MainWindow.xaml"
     this.inkBoard.MouseLeave += new System.Windows.Input.MouseEventHandler(this.inkBoard_MouseLeave);
     
     #line default
     #line hidden
     
     #line 226 "..\..\MainWindow.xaml"
     this.inkBoard.SelectionChanged += new System.EventHandler(this.inkBoard_SelectionChanged);
     
     #line default
     #line hidden
     
     #line 227 "..\..\MainWindow.xaml"
     this.inkBoard.PreviewKeyUp += new System.Windows.Input.KeyEventHandler(this.inkBoard_PreviewKeyUp);
     
     #line default
     #line hidden
     return;
     case 45:
     this.tbBoard = ((BoardEditor.BoardTextBox)(target));
     return;
     }
     this._contentLoaded = true;
 }
예제 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mnTest = ((System.Windows.Controls.MenuItem)(target));

            #line 12 "..\..\MainWindow.xaml"
                this.mnTest.Click += new System.Windows.RoutedEventHandler(this.mnTest_Click);

            #line default
            #line hidden
                return;

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

            #line 13 "..\..\MainWindow.xaml"
                this.mnSetting.Click += new System.Windows.RoutedEventHandler(this.mnSetting_Click);

            #line default
            #line hidden
                return;

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

            #line 15 "..\..\MainWindow.xaml"
                this.mnExit.Click += new System.Windows.RoutedEventHandler(this.mnExit_Click);

            #line default
            #line hidden
                return;

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

            #line 19 "..\..\MainWindow.xaml"
                this.mnPanel.Click += new System.Windows.RoutedEventHandler(this.mnPanel_Click);

            #line default
            #line hidden
                return;

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

            case 6:
                this.sbTool = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 7:
                this.tbtTop = ((System.Windows.Controls.ToolBarTray)(target));
                return;

            case 8:
                this.tbShapeSetting = ((System.Windows.Controls.ToolBar)(target));
                return;

            case 9:
                this.cbStrokeColor = ((BoardEditor.BrushComboBox)(target));
                return;

            case 10:
                this.cbFillColor = ((BoardEditor.BrushComboBox)(target));
                return;

            case 11:
                this.cbThickness = ((BoardEditor.ThicknessComboBox)(target));
                return;

            case 12:
                this.cbDash = ((BoardEditor.DashComboBox)(target));
                return;

            case 13:
                this.tbFontSetting = ((System.Windows.Controls.ToolBar)(target));
                return;

            case 14:
                this.cbFontFamaly = ((BoardEditor.FontComboBox)(target));
                return;

            case 15:
                this.cbFontSize = ((System.Windows.Controls.ComboBox)(target));

            #line 57 "..\..\MainWindow.xaml"
                this.cbFontSize.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbFont_SelectionChanged);

            #line default
            #line hidden

            #line 58 "..\..\MainWindow.xaml"
                this.cbFontSize.GotFocus += new System.Windows.RoutedEventHandler(this.cbSetting_GotFocus);

            #line default
            #line hidden
                return;

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

            case 17:
                this.lbShapes = ((System.Windows.Controls.ListBox)(target));

            #line 105 "..\..\MainWindow.xaml"
                this.lbShapes.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lbShapes_SelectionChanged);

            #line default
            #line hidden

            #line 106 "..\..\MainWindow.xaml"
                this.lbShapes.KeyDown += new System.Windows.Input.KeyEventHandler(this.lbShapes_KeyDown);

            #line default
            #line hidden

            #line 107 "..\..\MainWindow.xaml"
                this.lbShapes.GotFocus += new System.Windows.RoutedEventHandler(this.lbShapes_GotFocus);

            #line default
            #line hidden
                return;

            case 18:
                this.lbBoards = ((System.Windows.Controls.ListBox)(target));
                return;

            case 19:
                this.tbtLeft = ((System.Windows.Controls.ToolBarTray)(target));
                return;

            case 20:
                this.tbInput = ((System.Windows.Controls.ToolBar)(target));
                return;

            case 21:
                this.rbType = ((System.Windows.Controls.RadioButton)(target));

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

            #line default
            #line hidden
                return;

            case 22:
                this.rbInk = ((System.Windows.Controls.RadioButton)(target));

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

            #line default
            #line hidden
                return;

            case 23:
                this.rbPen = ((System.Windows.Controls.RadioButton)(target));

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

            #line default
            #line hidden
                return;

            case 24:
                this.rbLine = ((System.Windows.Controls.RadioButton)(target));

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

            #line default
            #line hidden
                return;

            case 25:
                this.rbRect = ((System.Windows.Controls.RadioButton)(target));

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

            #line default
            #line hidden
                return;

            case 26:
                this.rbRoundRect = ((System.Windows.Controls.RadioButton)(target));

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

            #line default
            #line hidden
                return;

            case 27:
                this.rbEllipse = ((System.Windows.Controls.RadioButton)(target));

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

            #line default
            #line hidden
                return;

            case 28:
                this.rbLabel = ((System.Windows.Controls.RadioButton)(target));

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

            #line default
            #line hidden
                return;

            case 29:
                this.tbEdit = ((System.Windows.Controls.ToolBar)(target));
                return;

            case 30:
                this.rbSelect = ((System.Windows.Controls.RadioButton)(target));

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

            #line default
            #line hidden
                return;

            case 31:
                this.rbErase = ((System.Windows.Controls.RadioButton)(target));

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

            #line default
            #line hidden
                return;

            case 32:
                this.rbRemove = ((System.Windows.Controls.RadioButton)(target));

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            #line 188 "..\..\MainWindow.xaml"
                this.btDeleteNotes.Click += new System.Windows.RoutedEventHandler(this.btDelete_Click);

            #line default
            #line hidden
                return;

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

            #line 191 "..\..\MainWindow.xaml"
                this.btDeleteShapes.Click += new System.Windows.RoutedEventHandler(this.btDelete_Click);

            #line default
            #line hidden
                return;

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

            #line 194 "..\..\MainWindow.xaml"
                this.btDeleteAll.Click += new System.Windows.RoutedEventHandler(this.btDelete_Click);

            #line default
            #line hidden
                return;

            case 37:
                this.inkBoard = ((System.Windows.Controls.InkCanvas)(target));

            #line 200 "..\..\MainWindow.xaml"
                this.inkBoard.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.inkBoard_MouseDown);

            #line default
            #line hidden

            #line 201 "..\..\MainWindow.xaml"
                this.inkBoard.MouseMove += new System.Windows.Input.MouseEventHandler(this.inkBoard_MouseMove);

            #line default
            #line hidden

            #line 202 "..\..\MainWindow.xaml"
                this.inkBoard.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.inkBoard_MouseUp);

            #line default
            #line hidden

            #line 203 "..\..\MainWindow.xaml"
                this.inkBoard.MouseEnter += new System.Windows.Input.MouseEventHandler(this.inkBoard_MouseEnter);

            #line default
            #line hidden

            #line 204 "..\..\MainWindow.xaml"
                this.inkBoard.MouseLeave += new System.Windows.Input.MouseEventHandler(this.inkBoard_MouseLeave);

            #line default
            #line hidden

            #line 205 "..\..\MainWindow.xaml"
                this.inkBoard.SelectionChanged += new System.EventHandler(this.inkBoard_SelectionChanged);

            #line default
            #line hidden

            #line 206 "..\..\MainWindow.xaml"
                this.inkBoard.PreviewKeyUp += new System.Windows.Input.KeyEventHandler(this.inkBoard_PreviewKeyUp);

            #line default
            #line hidden
                return;

            case 38:
                this.tbBoard = ((BoardEditor.BoardTextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }