예제 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.WinLotto = ((WinLotto.MainWindow)(target));
                return;

            case 2:
                this.DropDownMenu = ((System.Windows.Controls.ComboBox)(target));

            #line 15 "..\..\MainWindow.xaml"
                this.DropDownMenu.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            #line 20 "..\..\MainWindow.xaml"
                this.Clear.Click += new System.Windows.RoutedEventHandler(this.ClearButton_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 21 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.TextBox)(target)).TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_TextChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.CloseButton = ((System.Windows.Controls.Button)(target));

            #line 23 "..\..\MainWindow.xaml"
                this.CloseButton.Click += new System.Windows.RoutedEventHandler(this.CloseButton_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.DrawnNumbers = ((System.Windows.Controls.TextBox)(target));

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

            #line default
            #line hidden
                return;

            case 8:
                this.Draw_Copy = ((System.Windows.Controls.Button)(target));

            #line 25 "..\..\MainWindow.xaml"
                this.Draw_Copy.Click += new System.Windows.RoutedEventHandler(this.DrawButton_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.SaveButton = ((System.Windows.Controls.Button)(target));

            #line 26 "..\..\MainWindow.xaml"
                this.SaveButton.Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click);

            #line default
            #line hidden
                return;

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

            #line 27 "..\..\MainWindow.xaml"
                this.OpenFileButton.Click += new System.Windows.RoutedEventHandler(this.OpenFileButton_Click);

            #line default
            #line hidden
                return;

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

            #line 28 "..\..\MainWindow.xaml"
                this.checkButton.Click += new System.Windows.RoutedEventHandler(this.checkButton_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.correctNumbers = ((System.Windows.Controls.TextBox)(target));

            #line 29 "..\..\MainWindow.xaml"
                this.correctNumbers.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.correctNumbers_TextChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
예제 #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.WinLotto = ((WinLotto.MainWindow)(target));
     return;
     case 2:
     this.DropDownMenu = ((System.Windows.Controls.ComboBox)(target));
     
     #line 15 "..\..\MainWindow.xaml"
     this.DropDownMenu.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 3:
     this.Draw = ((System.Windows.Controls.Button)(target));
     
     #line 19 "..\..\MainWindow.xaml"
     this.Draw.Click += new System.Windows.RoutedEventHandler(this.DrawButton_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.Clear = ((System.Windows.Controls.Button)(target));
     
     #line 20 "..\..\MainWindow.xaml"
     this.Clear.Click += new System.Windows.RoutedEventHandler(this.ClearButton_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 21 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.TextBox)(target)).TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_TextChanged);
     
     #line default
     #line hidden
     return;
     case 6:
     this.CloseButton = ((System.Windows.Controls.Button)(target));
     
     #line 23 "..\..\MainWindow.xaml"
     this.CloseButton.Click += new System.Windows.RoutedEventHandler(this.CloseButton_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.DrawnNumbers = ((System.Windows.Controls.TextBox)(target));
     
     #line 24 "..\..\MainWindow.xaml"
     this.DrawnNumbers.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_TextChanged_1);
     
     #line default
     #line hidden
     return;
     case 8:
     this.Draw_Copy = ((System.Windows.Controls.Button)(target));
     
     #line 25 "..\..\MainWindow.xaml"
     this.Draw_Copy.Click += new System.Windows.RoutedEventHandler(this.DrawButton_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.SaveButton = ((System.Windows.Controls.Button)(target));
     
     #line 26 "..\..\MainWindow.xaml"
     this.SaveButton.Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.OpenFileButton = ((System.Windows.Controls.Button)(target));
     
     #line 27 "..\..\MainWindow.xaml"
     this.OpenFileButton.Click += new System.Windows.RoutedEventHandler(this.OpenFileButton_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.checkButton = ((System.Windows.Controls.Button)(target));
     
     #line 28 "..\..\MainWindow.xaml"
     this.checkButton.Click += new System.Windows.RoutedEventHandler(this.checkButton_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.correctNumbers = ((System.Windows.Controls.TextBox)(target));
     
     #line 29 "..\..\MainWindow.xaml"
     this.correctNumbers.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.correctNumbers_TextChanged);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }