Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 6 "..\..\..\MainWindow.xaml"
                ((socketTest.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.cavInfo = ((System.Windows.Controls.Canvas)(target));

            #line 12 "..\..\..\MainWindow.xaml"
                this.cavInfo.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.cavInfo_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 3:
                this.rectangle1 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 4:
                this.rectangle2 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 5:
                this.rectangle3 = ((System.Windows.Shapes.Rectangle)(target));
                return;

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

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

            #line 18 "..\..\..\MainWindow.xaml"
                this.txtNetFirewallName.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtNetFirewallName_TextChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.txtFirewallDeviceID = ((System.Windows.Controls.TextBox)(target));

            #line 19 "..\..\..\MainWindow.xaml"
                this.txtFirewallDeviceID.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtFirewallDeviceID_TextChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.txtMaskedIPAddress = ((socketTest.CInput.NetIPControl)(target));
                return;

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

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

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

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

            #line 25 "..\..\..\MainWindow.xaml"
                this.txtUserName.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtUserName_TextChanged);

            #line default
            #line hidden
                return;

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

            case 15:
                this.txtUserPassWord = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 16:
                this.cboConnectionState = ((System.Windows.Controls.ComboBox)(target));

            #line 28 "..\..\..\MainWindow.xaml"
                this.cboConnectionState.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboConnectionState_SelectionChanged);

            #line default
            #line hidden
                return;

            case 17:
                this.cboCurrentRunMode = ((System.Windows.Controls.ComboBox)(target));

            #line 29 "..\..\..\MainWindow.xaml"
                this.cboCurrentRunMode.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboCurrentRunMode_SelectionChanged);

            #line default
            #line hidden
                return;

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

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

            case 20:
                this.btnNetworkConnection = ((System.Windows.Controls.Button)(target));

            #line 33 "..\..\..\MainWindow.xaml"
                this.btnNetworkConnection.Click += new System.Windows.RoutedEventHandler(this.btnNetworkConnection_Click);

            #line default
            #line hidden
                return;

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

            #line 34 "..\..\..\MainWindow.xaml"
                this.btnConnectionCancel.Click += new System.Windows.RoutedEventHandler(this.btnConnectionCancel_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.btnRestoreDefaultSettings = ((System.Windows.Controls.Button)(target));

            #line 35 "..\..\..\MainWindow.xaml"
                this.btnRestoreDefaultSettings.Click += new System.Windows.RoutedEventHandler(this.btnRestoreDefaultSettings_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.btnGetFirewallLogInfo = ((System.Windows.Controls.Button)(target));

            #line 36 "..\..\..\MainWindow.xaml"
                this.btnGetFirewallLogInfo.Click += new System.Windows.RoutedEventHandler(this.btnGetFirewallLogInfo_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.btnStopGetFirewallLog = ((System.Windows.Controls.Button)(target));

            #line 37 "..\..\..\MainWindow.xaml"
                this.btnStopGetFirewallLog.Click += new System.Windows.RoutedEventHandler(this.btnStopGetFirewallLog_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.btnGetFirewalTrafficInfo = ((System.Windows.Controls.Button)(target));

            #line 38 "..\..\..\MainWindow.xaml"
                this.btnGetFirewalTrafficInfo.Click += new System.Windows.RoutedEventHandler(this.btnGetFirewalTrafficInfo_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.btnStopGetTrafficInfo = ((System.Windows.Controls.Button)(target));

            #line 39 "..\..\..\MainWindow.xaml"
                this.btnStopGetTrafficInfo.Click += new System.Windows.RoutedEventHandler(this.btnStopGetTrafficInfo_Click);

            #line default
            #line hidden
                return;

            case 27:
                this.btnRuleChooseSet = ((System.Windows.Controls.Button)(target));

            #line 41 "..\..\..\MainWindow.xaml"
                this.btnRuleChooseSet.Click += new System.Windows.RoutedEventHandler(this.btnRuleChooseSet_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.btnRuleSet = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\..\MainWindow.xaml"
                this.btnRuleSet.Click += new System.Windows.RoutedEventHandler(this.btnRuleSet_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.labe20 = ((System.Windows.Controls.Label)(target));
                return;

            case 30:
                this.labe21 = ((System.Windows.Controls.Label)(target));
                return;

            case 31:
                this.labe21_Copy = ((System.Windows.Controls.Label)(target));
                return;

            case 32:
                this.btnTrafficOn = ((System.Windows.Controls.Button)(target));

            #line 47 "..\..\..\MainWindow.xaml"
                this.btnTrafficOn.Click += new System.Windows.RoutedEventHandler(this.btnTrafficOn_Click);

            #line default
            #line hidden
                return;

            case 33:
                this.btnTrafficOff = ((System.Windows.Controls.Button)(target));

            #line 48 "..\..\..\MainWindow.xaml"
                this.btnTrafficOff.Click += new System.Windows.RoutedEventHandler(this.btnTrafficOff_Click);

            #line default
            #line hidden
                return;

            case 34:
                this.btnLogOn = ((System.Windows.Controls.Button)(target));

            #line 49 "..\..\..\MainWindow.xaml"
                this.btnLogOn.Click += new System.Windows.RoutedEventHandler(this.btnLogOn_Click);

            #line default
            #line hidden
                return;

            case 35:
                this.btnLogOff = ((System.Windows.Controls.Button)(target));

            #line 50 "..\..\..\MainWindow.xaml"
                this.btnLogOff.Click += new System.Windows.RoutedEventHandler(this.btnLogOff_Click);

            #line default
            #line hidden
                return;

            case 36:
                this.btnTestOn = ((System.Windows.Controls.Button)(target));

            #line 51 "..\..\..\MainWindow.xaml"
                this.btnTestOn.Click += new System.Windows.RoutedEventHandler(this.btnTestOn_Click);

            #line default
            #line hidden
                return;

            case 37:
                this.btnTestOff = ((System.Windows.Controls.Button)(target));

            #line 52 "..\..\..\MainWindow.xaml"
                this.btnTestOff.Click += new System.Windows.RoutedEventHandler(this.btnTestOff_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.label3 = ((System.Windows.Controls.Label)(target));
                return;

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

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

            case 4:
                this.txtMaskedIPAddress = ((socketTest.CInput.NetIPControl)(target));
                return;

            case 5:
                this.txtMaskedMACAddress = ((socketTest.CInput.NetMACAddressControl)(target));
                return;

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

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

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

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

            case 10:
                this.txtEquipDescInfo = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.btnGetMacAddress = ((System.Windows.Controls.Button)(target));

            #line 19 "..\..\..\FNetEquipManager.xaml"
                this.btnGetMacAddress.Click += new System.Windows.RoutedEventHandler(this.btnGetMacAddress_Click);

            #line default
            #line hidden
                return;

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

            case 13:
                this.txtNetEquipID = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 15:
                this.textBox1 = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 17:
                this.pbPass = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 18:
                this.txtIPAddress = ((socketTest.CInput.NetIPControl)(target));
                return;

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

            case 20:
                this.canvas2 = ((System.Windows.Controls.Canvas)(target));
                return;

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

            #line 31 "..\..\..\FNetEquipManager.xaml"
                this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.btnClose = ((System.Windows.Controls.Button)(target));

            #line 32 "..\..\..\FNetEquipManager.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.btnCon = ((System.Windows.Controls.Button)(target));

            #line 33 "..\..\..\FNetEquipManager.xaml"
                this.btnCon.Click += new System.Windows.RoutedEventHandler(this.btnCon_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.cavInfo = ((System.Windows.Controls.Canvas)(target));

            #line 13 "..\..\..\IPAddressModify.xaml"
                this.cavInfo.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.cavInfo_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 2:
                this.rectangle1 = ((System.Windows.Shapes.Rectangle)(target));
                return;

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

            case 4:
                this.txtNewMaskedIPAddress = ((socketTest.CInput.NetIPControl)(target));
                return;

            case 5:
                this.canvas2 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 6:
                this.btnModifyFirewallIPInfo = ((System.Windows.Controls.Button)(target));

            #line 23 "..\..\..\IPAddressModify.xaml"
                this.btnModifyFirewallIPInfo.Click += new System.Windows.RoutedEventHandler(this.btnModifyFirewallIPInfo_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.btnClose = ((System.Windows.Controls.Button)(target));

            #line 24 "..\..\..\IPAddressModify.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.btnClearFirewallIPInfo = ((System.Windows.Controls.Button)(target));

            #line 25 "..\..\..\IPAddressModify.xaml"
                this.btnClearFirewallIPInfo.Click += new System.Windows.RoutedEventHandler(this.btnClearFirewallIPInfo_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }