Пример #1
0
        private void AttachNewAccountControl()
        {
            if (this.InvokeRequired == true)
            {
                this.Invoke(new AttachNewAccountControlDelegate(AttachNewAccountControl));
            }
            else
            {
                _accountControlsPanel.Controls.Clear();

                _newAccountControl = new Client.Controls.NewAccount();
                _newAccountControl.CancelAccountSignup   += new Client.Controls.NewAccount.CancelAccountSignupHandler(_newAccountControl_CancelAccountSignup);
                _newAccountControl.AccountCreatedSuccess += new Client.Controls.NewAccount.AccountCreatedSuccessHandler(_newAccountControl_AccountCreatedSuccess);
                _newAccountControl.Dock = DockStyle.Fill;

                _accountControlsPanel.Controls.Add(_newAccountControl);
            }
            //_newAccountControl.Visible = false;
        }
        private void AttachNewAccountControl()
        {
            if (this.InvokeRequired == true)
            {
                this.Invoke(new AttachNewAccountControlDelegate(AttachNewAccountControl));
            }
            else
            {
                _accountControlsPanel.Controls.Clear();

                _newAccountControl = new Client.Controls.NewAccount();
                _newAccountControl.CancelAccountSignup += new Client.Controls.NewAccount.CancelAccountSignupHandler(_newAccountControl_CancelAccountSignup);
                _newAccountControl.AccountCreatedSuccess += new Client.Controls.NewAccount.AccountCreatedSuccessHandler(_newAccountControl_AccountCreatedSuccess);
                _newAccountControl.Dock = DockStyle.Fill;

                _accountControlsPanel.Controls.Add(_newAccountControl);
            }
            //_newAccountControl.Visible = false;
        }