Ejemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ChatServet = ((ChatServerApp.MainWindow)(target));

            #line 4 "..\..\..\MainWindow.xaml"
                this.ChatServet.Closing += new System.ComponentModel.CancelEventHandler(this.ChatServet_Closing);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 3:
                this.txtLog = ((System.Windows.Controls.ListBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.ChatServet = ((ChatServerApp.MainWindow)(target));
     
     #line 4 "..\..\..\MainWindow.xaml"
     this.ChatServet.Closing += new System.ComponentModel.CancelEventHandler(this.ChatServet_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     this.btnListen = ((System.Windows.Controls.Button)(target));
     
     #line 12 "..\..\..\MainWindow.xaml"
     this.btnListen.Click += new System.Windows.RoutedEventHandler(this.btnListen_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.txtLog = ((System.Windows.Controls.ListBox)(target));
     return;
     }
     this._contentLoaded = true;
 }