コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.InkPad = ((InkPad.MainWindow)(target));
                return;

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

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
ファイル: MainWindow.g.i.cs プロジェクト: GregMotenJr/Ink-Pad
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((InkPad.MainWindow)(target));
                return;

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

            case 3:
                this.inkCanvas = ((System.Windows.Controls.InkCanvas)(target));
                return;

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

            #line 14 "..\..\MainWindow.xaml"
                this.btnClear.Click += new System.Windows.RoutedEventHandler(this.btnClear_Click_1);

            #line default
            #line hidden
                return;

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

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

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