Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.addRequestWindow = ((LAB.AddRequest)(target));
                return;

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

            #line 18 "..\..\AddRequest.xaml"
                this.Connect.Click += new System.Windows.RoutedEventHandler(this.Connect_Click);

            #line default
            #line hidden
                return;

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

            #line 22 "..\..\AddRequest.xaml"
                this.cancel.Click += new System.Windows.RoutedEventHandler(this.Cancel_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        private void sendRequest_Click(object sender, RoutedEventArgs e)
        {
            AddRequest AR = new AddRequest(userNameHidden, ipHidden, portNumberHidden, this);

            AR.Show();
        }