Beispiel #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Paint = ((Paint.MainWindow)(target));
     
     #line 5 "..\..\MainWindow.xaml"
     this.Paint.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Paint_MouseLeave);
     
     #line default
     #line hidden
     
     #line 5 "..\..\MainWindow.xaml"
     this.Paint.Loaded += new System.Windows.RoutedEventHandler(this.Paint_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.Select = ((System.Windows.Controls.Primitives.ToggleButton)(target));
     
     #line 9 "..\..\MainWindow.xaml"
     this.Select.Checked += new System.Windows.RoutedEventHandler(this.Select_Checked);
     
     #line default
     #line hidden
     
     #line 9 "..\..\MainWindow.xaml"
     this.Select.Unchecked += new System.Windows.RoutedEventHandler(this.Select_Unchecked);
     
     #line default
     #line hidden
     return;
     case 3:
     this.radioLine = ((System.Windows.Controls.RadioButton)(target));
     
     #line 13 "..\..\MainWindow.xaml"
     this.radioLine.Checked += new System.Windows.RoutedEventHandler(this.radioLine_Checked);
     
     #line default
     #line hidden
     return;
     case 4:
     this.radioRectangle = ((System.Windows.Controls.RadioButton)(target));
     
     #line 14 "..\..\MainWindow.xaml"
     this.radioRectangle.Checked += new System.Windows.RoutedEventHandler(this.radioRectangle_Checked);
     
     #line default
     #line hidden
     return;
     case 5:
     this.radioEllipse = ((System.Windows.Controls.RadioButton)(target));
     
     #line 15 "..\..\MainWindow.xaml"
     this.radioEllipse.Checked += new System.Windows.RoutedEventHandler(this.radioEllipse_Checked);
     
     #line default
     #line hidden
     return;
     case 6:
     this.SizeBox = ((System.Windows.Controls.ComboBox)(target));
     
     #line 21 "..\..\MainWindow.xaml"
     this.SizeBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.SizeBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 7:
     this.ClrPcker_Background = ((Xceed.Wpf.Toolkit.ColorPicker)(target));
     
     #line 30 "..\..\MainWindow.xaml"
     this.ClrPcker_Background.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Nullable<System.Windows.Media.Color>>(this.ClrPcker_Background_SelectedColorChanged);
     
     #line default
     #line hidden
     return;
     case 8:
     this.FillColorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target));
     
     #line 37 "..\..\MainWindow.xaml"
     this.FillColorPicker.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Nullable<System.Windows.Media.Color>>(this.FillColorPicker_SelectedColorChanged);
     
     #line default
     #line hidden
     return;
     case 9:
     this.dashStyle = ((System.Windows.Controls.ComboBox)(target));
     
     #line 43 "..\..\MainWindow.xaml"
     this.dashStyle.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dashStyle_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 10:
     this.cmbItemSolid1 = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 11:
     this.cmbItemDash1 = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 12:
     this.cmbItemDashDot1 = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 13:
     this.DrawCanvas = ((System.Windows.Controls.Canvas)(target));
     
     #line 109 "..\..\MainWindow.xaml"
     this.DrawCanvas.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.DrawCanvas_PreviewMouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 110 "..\..\MainWindow.xaml"
     this.DrawCanvas.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.DrawCanvas_PreviewMouseLeftButtonUp);
     
     #line default
     #line hidden
     
     #line 111 "..\..\MainWindow.xaml"
     this.DrawCanvas.MouseMove += new System.Windows.Input.MouseEventHandler(this.DrawCanvas_MouseMove);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Beispiel #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Paint = ((Paint.MainWindow)(target));
     
     #line 5 "..\..\MainWindow.xaml"
     this.Paint.KeyDown += new System.Windows.Input.KeyEventHandler(this.Paint_KeyDown);
     
     #line default
     #line hidden
     return;
     case 2:
     this.MyCanvas = ((System.Windows.Controls.Canvas)(target));
     
     #line 8 "..\..\MainWindow.xaml"
     this.MyCanvas.Loaded += new System.Windows.RoutedEventHandler(this.MyCanvas_Loaded);
     
     #line default
     #line hidden
     
     #line 9 "..\..\MainWindow.xaml"
     this.MyCanvas.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MyCanvas_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 9 "..\..\MainWindow.xaml"
     this.MyCanvas.MouseMove += new System.Windows.Input.MouseEventHandler(this.MyCanvas_MouseMove);
     
     #line default
     #line hidden
     
     #line 9 "..\..\MainWindow.xaml"
     this.MyCanvas.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.MyCanvas_MouseLeftButtonUp);
     
     #line default
     #line hidden
     return;
     case 3:
     this.gridColor = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.btnColor1 = ((System.Windows.Controls.Button)(target));
     
     #line 20 "..\..\MainWindow.xaml"
     this.btnColor1.Click += new System.Windows.RoutedEventHandler(this.btnColor1_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.btnColor2 = ((System.Windows.Controls.Button)(target));
     
     #line 21 "..\..\MainWindow.xaml"
     this.btnColor2.Click += new System.Windows.RoutedEventHandler(this.btnColor2_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.btnMoreColor = ((System.Windows.Controls.Button)(target));
     
     #line 22 "..\..\MainWindow.xaml"
     this.btnMoreColor.Click += new System.Windows.RoutedEventHandler(this.btnMoreColor_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.unfgrid = ((System.Windows.Controls.Primitives.UniformGrid)(target));
     return;
     case 8:
     this.btnColorBlack = ((System.Windows.Controls.Button)(target));
     
     #line 24 "..\..\MainWindow.xaml"
     this.btnColorBlack.Click += new System.Windows.RoutedEventHandler(this.btnColor_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.btnColorRed = ((System.Windows.Controls.Button)(target));
     
     #line 25 "..\..\MainWindow.xaml"
     this.btnColorRed.Click += new System.Windows.RoutedEventHandler(this.btnColor_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.btnColorOrange = ((System.Windows.Controls.Button)(target));
     
     #line 26 "..\..\MainWindow.xaml"
     this.btnColorOrange.Click += new System.Windows.RoutedEventHandler(this.btnColor_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.btnColorYellow = ((System.Windows.Controls.Button)(target));
     
     #line 27 "..\..\MainWindow.xaml"
     this.btnColorYellow.Click += new System.Windows.RoutedEventHandler(this.btnColor_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.btnColorGreen = ((System.Windows.Controls.Button)(target));
     
     #line 28 "..\..\MainWindow.xaml"
     this.btnColorGreen.Click += new System.Windows.RoutedEventHandler(this.btnColor_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.btnColorBlue = ((System.Windows.Controls.Button)(target));
     
     #line 29 "..\..\MainWindow.xaml"
     this.btnColorBlue.Click += new System.Windows.RoutedEventHandler(this.btnColor_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     this.btnColorWhite = ((System.Windows.Controls.Button)(target));
     
     #line 30 "..\..\MainWindow.xaml"
     this.btnColorWhite.Click += new System.Windows.RoutedEventHandler(this.btnColor_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     this.btnColorMagenta = ((System.Windows.Controls.Button)(target));
     
     #line 31 "..\..\MainWindow.xaml"
     this.btnColorMagenta.Click += new System.Windows.RoutedEventHandler(this.btnColor_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.btnColorChocolate = ((System.Windows.Controls.Button)(target));
     
     #line 32 "..\..\MainWindow.xaml"
     this.btnColorChocolate.Click += new System.Windows.RoutedEventHandler(this.btnColor_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.btnColorPurple = ((System.Windows.Controls.Button)(target));
     
     #line 33 "..\..\MainWindow.xaml"
     this.btnColorPurple.Click += new System.Windows.RoutedEventHandler(this.btnColor_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.btnColorLime = ((System.Windows.Controls.Button)(target));
     
     #line 34 "..\..\MainWindow.xaml"
     this.btnColorLime.Click += new System.Windows.RoutedEventHandler(this.btnColor_Click);
     
     #line default
     #line hidden
     return;
     case 19:
     this.btnColorDeepSkyBlue = ((System.Windows.Controls.Button)(target));
     
     #line 35 "..\..\MainWindow.xaml"
     this.btnColorDeepSkyBlue.Click += new System.Windows.RoutedEventHandler(this.btnColor_Click);
     
     #line default
     #line hidden
     return;
     case 20:
     this.btnMoreColor1 = ((System.Windows.Controls.Button)(target));
     
     #line 36 "..\..\MainWindow.xaml"
     this.btnMoreColor1.Click += new System.Windows.RoutedEventHandler(this.btnColor_Click);
     
     #line default
     #line hidden
     return;
     case 21:
     this.btnMoreColor2 = ((System.Windows.Controls.Button)(target));
     
     #line 37 "..\..\MainWindow.xaml"
     this.btnMoreColor2.Click += new System.Windows.RoutedEventHandler(this.btnColor_Click);
     
     #line default
     #line hidden
     return;
     case 22:
     this.btnMoreColor3 = ((System.Windows.Controls.Button)(target));
     
     #line 38 "..\..\MainWindow.xaml"
     this.btnMoreColor3.Click += new System.Windows.RoutedEventHandler(this.btnColor_Click);
     
     #line default
     #line hidden
     return;
     case 23:
     this.btnMoreColor4 = ((System.Windows.Controls.Button)(target));
     
     #line 39 "..\..\MainWindow.xaml"
     this.btnMoreColor4.Click += new System.Windows.RoutedEventHandler(this.btnColor_Click);
     
     #line default
     #line hidden
     return;
     case 24:
     this.btnMoreColor5 = ((System.Windows.Controls.Button)(target));
     
     #line 40 "..\..\MainWindow.xaml"
     this.btnMoreColor5.Click += new System.Windows.RoutedEventHandler(this.btnColor_Click);
     
     #line default
     #line hidden
     return;
     case 25:
     this.btnMoreColor6 = ((System.Windows.Controls.Button)(target));
     
     #line 41 "..\..\MainWindow.xaml"
     this.btnMoreColor6.Click += new System.Windows.RoutedEventHandler(this.btnColor_Click);
     
     #line default
     #line hidden
     return;
     case 26:
     this.lblShapes = ((System.Windows.Controls.Label)(target));
     return;
     case 27:
     this.cbbShapes = ((System.Windows.Controls.ComboBox)(target));
     
     #line 58 "..\..\MainWindow.xaml"
     this.cbbShapes.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbbShapes_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 28:
     this.lblSize = ((System.Windows.Controls.Label)(target));
     return;
     case 29:
     this.cbbSize = ((System.Windows.Controls.ComboBox)(target));
     
     #line 68 "..\..\MainWindow.xaml"
     this.cbbSize.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbbSize_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 30:
     this.lblFill = ((System.Windows.Controls.Label)(target));
     return;
     case 31:
     this.cbbFill = ((System.Windows.Controls.ComboBox)(target));
     
     #line 79 "..\..\MainWindow.xaml"
     this.cbbFill.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbbFill_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 32:
     this.lblOutLine = ((System.Windows.Controls.Label)(target));
     return;
     case 33:
     this.cbbOutLine = ((System.Windows.Controls.ComboBox)(target));
     
     #line 87 "..\..\MainWindow.xaml"
     this.cbbOutLine.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbbOutLine_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 34:
     this.btnCut = ((System.Windows.Controls.Button)(target));
     
     #line 95 "..\..\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 96 "..\..\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 97 "..\..\MainWindow.xaml"
     this.btnPaste.Click += new System.Windows.RoutedEventHandler(this.btnPaste_Click);
     
     #line default
     #line hidden
     return;
     case 37:
     this.btnSave = ((System.Windows.Controls.Button)(target));
     
     #line 98 "..\..\MainWindow.xaml"
     this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);
     
     #line default
     #line hidden
     return;
     case 38:
     this.Load = ((System.Windows.Controls.Button)(target));
     
     #line 99 "..\..\MainWindow.xaml"
     this.Load.Click += new System.Windows.RoutedEventHandler(this.Load_Click);
     
     #line default
     #line hidden
     return;
     case 39:
     this.Undo = ((System.Windows.Controls.Button)(target));
     
     #line 101 "..\..\MainWindow.xaml"
     this.Undo.Click += new System.Windows.RoutedEventHandler(this.Undo_Click);
     
     #line default
     #line hidden
     return;
     case 40:
     this.Redo = ((System.Windows.Controls.Button)(target));
     
     #line 102 "..\..\MainWindow.xaml"
     this.Redo.Click += new System.Windows.RoutedEventHandler(this.Redo_Click);
     
     #line default
     #line hidden
     return;
     case 41:
     this.btnFont = ((System.Windows.Controls.Button)(target));
     
     #line 103 "..\..\MainWindow.xaml"
     this.btnFont.Click += new System.Windows.RoutedEventHandler(this.btnFont_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Beispiel #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainWindow1 = ((Paint.MainWindow)(target));

            #line 4 "..\..\MainWindow.xaml"
                this.MainWindow1.Loaded += new System.Windows.RoutedEventHandler(this.MainWindow_Loaded);

            #line default
            #line hidden

            #line 4 "..\..\MainWindow.xaml"
                this.MainWindow1.LayoutUpdated += new System.EventHandler(this.MainWindow_LayoutUpdated);

            #line default
            #line hidden
                return;

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

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

            #line 8 "..\..\MainWindow.xaml"
                this.Canvas.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Canvas_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 8 "..\..\MainWindow.xaml"
                this.Canvas.MouseMove += new System.Windows.Input.MouseEventHandler(this.Canvas_MouseMove);

            #line default
            #line hidden

            #line 8 "..\..\MainWindow.xaml"
                this.Canvas.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Canvas_MouseRightButtonDown);

            #line default
            #line hidden

            #line 8 "..\..\MainWindow.xaml"
                this.Canvas.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Canvas_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

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

            #line 10 "..\..\MainWindow.xaml"
                this.DockPanel.MouseEnter += new System.Windows.Input.MouseEventHandler(this.DockPanel_MouseEnter);

            #line default
            #line hidden
                return;

            case 5:
                this.Button_Save = ((System.Windows.Controls.Button)(target));

            #line 11 "..\..\MainWindow.xaml"
                this.Button_Save.Click += new System.Windows.RoutedEventHandler(this.Button_Save_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.ComboBox_SecondaryColor = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 7:
                this.CheckBox_Fill = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 8:
                this.TextBox_Thickness = ((System.Windows.Controls.TextBox)(target));

            #line 24 "..\..\MainWindow.xaml"
                this.TextBox_Thickness.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_Thickness_TextChanged);

            #line default
            #line hidden

            #line 24 "..\..\MainWindow.xaml"
                this.TextBox_Thickness.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.TextBox_Thickness_PreviewTextInput);

            #line default
            #line hidden
                return;

            case 9:
                this.ComboBox_PrimaryColor = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 10:
                this.Button_Line = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 12:
                this.Button_Ellipse = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 13:
                this.Button_Polyline = ((System.Windows.Controls.Button)(target));

            #line 40 "..\..\MainWindow.xaml"
                this.Button_Polyline.Click += new System.Windows.RoutedEventHandler(this.Button_Polyline_Click);

            #line default
            #line hidden
                return;

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

            #line 41 "..\..\MainWindow.xaml"
                this.Button_Polygon.Click += new System.Windows.RoutedEventHandler(this.Button_Polygon_Click);

            #line default
            #line hidden
                return;

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

            #line 42 "..\..\MainWindow.xaml"
                this.Button_Eraser.Click += new System.Windows.RoutedEventHandler(this.Button_Eraser_Click);

            #line default
            #line hidden
                return;

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

            #line 43 "..\..\MainWindow.xaml"
                this.Button_Background.Click += new System.Windows.RoutedEventHandler(this.Button_Background_Click);

            #line default
            #line hidden
                return;

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

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

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