예제 #1
0
        private void btnAddAcount_Click(object sender, EventArgs e)
        {
            EditAccount editWnd = new EditAccount("", "", (int)EmailType.TYPE_163, true);

            editWnd.AnnounceHandler = AddAccountInfo;
            editWnd.ShowDialog();
        }
예제 #2
0
        private void btnChangeAccountInfo_Click(object sender, EventArgs e)
        {
            if (dgAccountBrowser.CurrentRow == null)
            {
                return;
            }

            int         index   = dgAccountBrowser.CurrentRow.Index;
            EditAccount editWnd = new EditAccount(accounts[index].Account, accounts[index].Passwd, (int)accounts[index].Type, false);

            editWnd.AnnounceHandler = UpdateAccountInfo;
            editWnd.ShowDialog();
        }