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

            case 2:
                this.response = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.log = ((System.Windows.Controls.ListBox)(target));
                return;

            case 4:
                this.WeatherImg = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.High = ((System.Windows.Controls.Label)(target));
                return;

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

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

            case 8:
                this.Time = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.Input = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 21 "..\..\MainWindow.xaml"
                this.inputButton.Click += new System.Windows.RoutedEventHandler(this.inputButton_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.imageBox = ((System.Windows.Controls.Image)(target));
                return;

            case 12:
                this.lastTweet = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Jarvis = ((Jarvis.MainWindow)(target));
     return;
     case 2:
     this.response = ((System.Windows.Controls.TextBox)(target));
     return;
     case 3:
     this.log = ((System.Windows.Controls.ListBox)(target));
     return;
     case 4:
     this.WeatherImg = ((System.Windows.Controls.Image)(target));
     return;
     case 5:
     this.High = ((System.Windows.Controls.Label)(target));
     return;
     case 6:
     this.Low = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     this.Current = ((System.Windows.Controls.Label)(target));
     return;
     case 8:
     this.Time = ((System.Windows.Controls.Label)(target));
     return;
     case 9:
     this.Input = ((System.Windows.Controls.TextBox)(target));
     return;
     case 10:
     this.inputButton = ((System.Windows.Controls.Button)(target));
     
     #line 21 "..\..\MainWindow.xaml"
     this.inputButton.Click += new System.Windows.RoutedEventHandler(this.inputButton_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.imageBox = ((System.Windows.Controls.Image)(target));
     return;
     case 12:
     this.lastTweet = ((System.Windows.Controls.Label)(target));
     return;
     }
     this._contentLoaded = true;
 }