Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MyToolWindow = ((appMobi.AppMobiCloudServiceExtension.MyControl)(target));
                return;

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

            case 3:

            #line 41 "..\..\MyControl.xaml"
                ((System.Windows.Documents.Hyperlink)(target)).Click += new System.Windows.RoutedEventHandler(this.btnGotoApphub_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.btnWindowsLive = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:

            #line 42 "..\..\MyControl.xaml"
                ((System.Windows.Documents.Hyperlink)(target)).Click += new System.Windows.RoutedEventHandler(this.btnWindowsLive_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.grpSignin = ((System.Windows.Controls.GroupBox)(target));
                return;

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

            case 8:
                this.txtPassword = ((System.Windows.Controls.PasswordBox)(target));
                return;

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

            #line 57 "..\..\MyControl.xaml"
                this.btnSignin.Click += new System.Windows.RoutedEventHandler(this.btnSignin_Click);

            #line default
            #line hidden
                return;

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

            case 11:
                this.grpWelcome = ((System.Windows.Controls.GroupBox)(target));
                return;

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

            case 13:
                this.cboAppMobiApps = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            #line 75 "..\..\MyControl.xaml"
                this.btnDownloadPackage.Click += new System.Windows.RoutedEventHandler(this.btnDownloadPackage_Click);

            #line default
            #line hidden
                return;

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

            #line 77 "..\..\MyControl.xaml"
                this.btnUploadPackage.Click += new System.Windows.RoutedEventHandler(this.btnUploadPackage_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.MyToolWindow = ((appMobi.AppMobiCloudServiceExtension.MyControl)(target));
     return;
     case 2:
     this.btnGotoApphub = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 3:
     
     #line 41 "..\..\MyControl.xaml"
     ((System.Windows.Documents.Hyperlink)(target)).Click += new System.Windows.RoutedEventHandler(this.btnGotoApphub_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.btnWindowsLive = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 5:
     
     #line 42 "..\..\MyControl.xaml"
     ((System.Windows.Documents.Hyperlink)(target)).Click += new System.Windows.RoutedEventHandler(this.btnWindowsLive_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.grpSignin = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 7:
     this.txtUserName = ((System.Windows.Controls.TextBox)(target));
     return;
     case 8:
     this.txtPassword = ((System.Windows.Controls.PasswordBox)(target));
     return;
     case 9:
     this.btnSignin = ((System.Windows.Controls.Button)(target));
     
     #line 57 "..\..\MyControl.xaml"
     this.btnSignin.Click += new System.Windows.RoutedEventHandler(this.btnSignin_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.lblMessage = ((System.Windows.Controls.Label)(target));
     return;
     case 11:
     this.grpWelcome = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 12:
     this.lblUserName = ((System.Windows.Controls.Label)(target));
     return;
     case 13:
     this.cboAppMobiApps = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 14:
     this.btnDownloadPackage = ((System.Windows.Controls.Button)(target));
     
     #line 75 "..\..\MyControl.xaml"
     this.btnDownloadPackage.Click += new System.Windows.RoutedEventHandler(this.btnDownloadPackage_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     this.btnUploadPackage = ((System.Windows.Controls.Button)(target));
     
     #line 77 "..\..\MyControl.xaml"
     this.btnUploadPackage.Click += new System.Windows.RoutedEventHandler(this.btnUploadPackage_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }