示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\..\..\Utilities\TimerControl.xaml"
                ((GarticPhone.Utilities.TimerControl)(target)).Loaded += new System.Windows.RoutedEventHandler(this.OnLoaded);

            #line default
            #line hidden
                return;

            case 2:
                this.skElement = ((SkiaSharp.Views.WPF.SKElement)(target));

            #line 12 "..\..\..\..\Utilities\TimerControl.xaml"
                this.skElement.PaintSurface += new System.EventHandler <SkiaSharp.Views.Desktop.SKPaintSurfaceEventArgs>(this.OnTimerSurface);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.skElement_MouseMove);

            #line default
            #line hidden

            #line 10 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.skElement_MouseUp);

            #line default
            #line hidden
                return;

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

            case 3:
                this.skElement = ((SkiaSharp.Views.WPF.SKElement)(target));

            #line 26 "..\..\..\..\Windows\PaintWindow.xaml"
                this.skElement.PaintSurface += new System.EventHandler <SkiaSharp.Views.Desktop.SKPaintSurfaceEventArgs>(this.OnPaintSurface);

            #line default
            #line hidden

            #line 26 "..\..\..\..\Windows\PaintWindow.xaml"
                this.skElement.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.skElement_MouseDown);

            #line default
            #line hidden
                return;

            case 4:

            #line 30 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.StrokeWidth1_Button_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.StrokeWidthEllipse1 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 6:

            #line 35 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.StrokeWidth2_Button_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.StrokeWidthEllipse2 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 8:

            #line 40 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.StrokeWidth3_Button_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.StrokeWidthEllipse3 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 10:

            #line 45 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.StrokeWidth4_Button_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.StrokeWidthEllipse4 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 12:

            #line 50 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.StrokeWidth5_Button_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.StrokeWidthEllipse5 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 14:

            #line 57 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BlackColor);

            #line default
            #line hidden
                return;

            case 15:

            #line 62 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SlateGrayColor);

            #line default
            #line hidden
                return;

            case 16:

            #line 67 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.WhiteColor);

            #line default
            #line hidden
                return;

            case 17:

            #line 74 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.MediumOrchidColor);

            #line default
            #line hidden
                return;

            case 18:

            #line 79 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DarkOrchid);

            #line default
            #line hidden
                return;

            case 19:

            #line 84 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DarkBlueColor);

            #line default
            #line hidden
                return;

            case 20:

            #line 91 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.MediumSlateBlueColor);

            #line default
            #line hidden
                return;

            case 21:

            #line 96 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.LightSkyBlueColor);

            #line default
            #line hidden
                return;

            case 22:

            #line 101 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.YellowGreenColor);

            #line default
            #line hidden
                return;

            case 23:

            #line 108 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GreenColor);

            #line default
            #line hidden
                return;

            case 24:

            #line 113 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.YellowColor);

            #line default
            #line hidden
                return;

            case 25:

            #line 118 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OrangeColor);

            #line default
            #line hidden
                return;

            case 26:

            #line 124 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PinkColor);

            #line default
            #line hidden
                return;

            case 27:

            #line 129 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.HotPinkColor);

            #line default
            #line hidden
                return;

            case 28:

            #line 134 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.RedColor);

            #line default
            #line hidden
                return;

            case 29:

            #line 140 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.FireBrickColor);

            #line default
            #line hidden
                return;

            case 30:

            #line 145 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AnthiqueWhiteColor);

            #line default
            #line hidden
                return;

            case 31:

            #line 150 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SaddleBrownColor);

            #line default
            #line hidden
                return;

            case 32:
                this.CurrentColor = ((System.Windows.Shapes.Rectangle)(target));
                return;

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

            #line 165 "..\..\..\..\Windows\PaintWindow.xaml"
                this.penState.Click += new System.Windows.RoutedEventHandler(this.OnPen);

            #line default
            #line hidden
                return;

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

            #line 168 "..\..\..\..\Windows\PaintWindow.xaml"
                this.rubberState.Click += new System.Windows.RoutedEventHandler(this.OnRubber);

            #line default
            #line hidden
                return;

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

            #line 173 "..\..\..\..\Windows\PaintWindow.xaml"
                this.squareState.Click += new System.Windows.RoutedEventHandler(this.OnSquare);

            #line default
            #line hidden
                return;

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

            #line 176 "..\..\..\..\Windows\PaintWindow.xaml"
                this.circleState.Click += new System.Windows.RoutedEventHandler(this.OnCircle);

            #line default
            #line hidden
                return;

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

            #line 181 "..\..\..\..\Windows\PaintWindow.xaml"
                this.squareFilledState.Click += new System.Windows.RoutedEventHandler(this.OnSquareFilled);

            #line default
            #line hidden
                return;

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

            #line 184 "..\..\..\..\Windows\PaintWindow.xaml"
                this.circleFilledState.Click += new System.Windows.RoutedEventHandler(this.OnCircleFilled);

            #line default
            #line hidden
                return;

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

            #line 189 "..\..\..\..\Windows\PaintWindow.xaml"
                this.lineState.Click += new System.Windows.RoutedEventHandler(this.OnLine);

            #line default
            #line hidden
                return;

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

            #line 192 "..\..\..\..\Windows\PaintWindow.xaml"
                this.fillState.Click += new System.Windows.RoutedEventHandler(this.OnFill);

            #line default
            #line hidden
                return;

            case 41:

            #line 197 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnCancel);

            #line default
            #line hidden
                return;

            case 42:

            #line 200 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnRestore);

            #line default
            #line hidden
                return;

            case 43:

            #line 205 "..\..\..\..\Windows\PaintWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnFinish);

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