Пример #1
0
        private void addAcctButtonItem_Click(object sender, EventArgs e)
        {
            using (var addAcct = new AddAccount())
            {
                addAcct.AccountAdded += addAcct_AccountAdded;

                addAcct.ShowDialog();
            }
        }
Пример #2
0
        private void addAccountButton_Click(object sender, EventArgs e)
        {
            AddAccount addAccount = new AddAccount();

            addAccount.ShowDialog();
        }
Пример #3
0
        private void addAcct_AccountAdded(object sender, AddAccount.AccountAddedEventArgs e)
        {
            SendToServer(String.Format("{0} {1} {2}", Constants.AccountAdd, e.account, e.password));
            SendToServer(String.Format("{0} {1} {2} -1", Constants.SetGMLevel, e.account, e.gmlevel));

            GetSetAccounts();
        }