Esempio n. 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Loginwindow = ((WebBot.Login)(target));
                return;

            case 2:
                this.button_login = ((System.Windows.Controls.Button)(target));

            #line 11 "..\..\Login.xaml"
                this.button_login.Click += new System.Windows.RoutedEventHandler(this.button_login_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.label_username = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.textBox_username = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.passwordBox = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 6:
                this.label_password = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.label_world = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.comboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 9:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.label3 = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.label4 = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.label5 = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.label6 = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.label7 = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.label8 = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.label9 = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.label10 = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.label11 = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.label12 = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.button = ((System.Windows.Controls.Button)(target));

            #line 31 "..\..\Login.xaml"
                this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.label_error = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Loginwindow = ((WebBot.Login)(target));
     return;
     case 2:
     this.button_login = ((System.Windows.Controls.Button)(target));
     
     #line 11 "..\..\Login.xaml"
     this.button_login.Click += new System.Windows.RoutedEventHandler(this.button_login_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.label_username = ((System.Windows.Controls.Label)(target));
     return;
     case 4:
     this.textBox_username = ((System.Windows.Controls.TextBox)(target));
     return;
     case 5:
     this.passwordBox = ((System.Windows.Controls.PasswordBox)(target));
     return;
     case 6:
     this.label_password = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     this.label_world = ((System.Windows.Controls.Label)(target));
     return;
     case 8:
     this.comboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 9:
     this.label1 = ((System.Windows.Controls.Label)(target));
     return;
     case 10:
     this.label2 = ((System.Windows.Controls.Label)(target));
     return;
     case 11:
     this.label3 = ((System.Windows.Controls.Label)(target));
     return;
     case 12:
     this.label4 = ((System.Windows.Controls.Label)(target));
     return;
     case 13:
     this.label5 = ((System.Windows.Controls.Label)(target));
     return;
     case 14:
     this.label6 = ((System.Windows.Controls.Label)(target));
     return;
     case 15:
     this.label7 = ((System.Windows.Controls.Label)(target));
     return;
     case 16:
     this.label8 = ((System.Windows.Controls.Label)(target));
     return;
     case 17:
     this.label9 = ((System.Windows.Controls.Label)(target));
     return;
     case 18:
     this.label10 = ((System.Windows.Controls.Label)(target));
     return;
     case 19:
     this.label11 = ((System.Windows.Controls.Label)(target));
     return;
     case 20:
     this.label12 = ((System.Windows.Controls.Label)(target));
     return;
     case 21:
     this.button = ((System.Windows.Controls.Button)(target));
     
     #line 31 "..\..\Login.xaml"
     this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click);
     
     #line default
     #line hidden
     return;
     case 22:
     this.label_error = ((System.Windows.Controls.Label)(target));
     return;
     }
     this._contentLoaded = true;
 }