Ejemplo n.º 1
0
        public ConnectDialog()
        {
            InitializeComponent();
            _Connecting     = new Connecting();
            textBox1.KeyUp += textBox1_KeyUp;
            tabControl1.SelectedIndexChanged += tabControl1_SelectedIndexChanged;
            this.FormClosed += ConnectDialog_FormClosed;
            _ProxyClients    = new ProxyClients();

            _ProxyClients.Dock     = System.Windows.Forms.DockStyle.Fill;
            _ProxyClients.Location = new System.Drawing.Point(3, 3);
            _ProxyClients.Margin   = new System.Windows.Forms.Padding(0);
            _ProxyClients.Name     = "_ProxyClients";
            _ProxyClients.Size     = new System.Drawing.Size(295, 34);
            _ProxyClients.TabIndex = 0;
            _ProxyClients.OnConnectAttemptEvent += _ProxyClients_OnConnectAttemptEvent;
            _ProxyClients.OnDisconnectEvent     += _ProxyClients_OnDisconnectEvent;
            _Login = new Login();

            _Login.Dock                 = System.Windows.Forms.DockStyle.Fill;
            _Login.Location             = new System.Drawing.Point(3, 3);
            _Login.Margin               = new System.Windows.Forms.Padding(0);
            _Login.Name                 = "_Login";
            _Login.Size                 = new System.Drawing.Size(295, 34);
            _Login.TabIndex             = 0;
            _Login.OnLoginSuccessEvent += _Login_OnLoginSuccessEvent;

            this.Shown += ConnectDialog_Shown;
        }
Ejemplo n.º 2
0
        public ConnectDialog()
        {
            InitializeComponent();
            _Connecting = new Connecting();
            textBox1.KeyUp += textBox1_KeyUp;
            tabControl1.SelectedIndexChanged += tabControl1_SelectedIndexChanged;
            this.FormClosed += ConnectDialog_FormClosed;
            _ProxyClients = new ProxyClients();

            _ProxyClients.Dock = System.Windows.Forms.DockStyle.Fill;
            _ProxyClients.Location = new System.Drawing.Point(3, 3);
            _ProxyClients.Margin = new System.Windows.Forms.Padding(0);
            _ProxyClients.Name = "_ProxyClients";
            _ProxyClients.Size = new System.Drawing.Size(295, 34);
            _ProxyClients.TabIndex = 0;
            _ProxyClients.OnConnectAttemptEvent += _ProxyClients_OnConnectAttemptEvent;
            _ProxyClients.OnDisconnectEvent += _ProxyClients_OnDisconnectEvent;
            _Login = new Login();

            _Login.Dock = System.Windows.Forms.DockStyle.Fill;
            _Login.Location = new System.Drawing.Point(3, 3);
            _Login.Margin = new System.Windows.Forms.Padding(0);
            _Login.Name = "_Login";
            _Login.Size = new System.Drawing.Size(295, 34);
            _Login.TabIndex = 0;
            _Login.OnLoginSuccessEvent += _Login_OnLoginSuccessEvent;

            this.Shown += ConnectDialog_Shown;
        }