Exemplo n.º 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     inputAccount inputForm = new inputAccount();
     inputForm.OnAccountChangedHandler += new EventHandler(onAddAccount);
     inputForm.ShowDialog();
 }
Exemplo n.º 2
0
        private void 編集ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Account account = new Account();
            if (listView1.SelectedItems.Count < 1) return;
            string guid = getGuidFromListViewSelectedItem();

            foreach (Account a in accountList)
            {
                if (a.guid.Equals(guid))
                {
                    account = a;
                }
            }

            inputAccount inputForm = new inputAccount(account);
            inputForm.OnAccountChangedHandler += new EventHandler(onAddAccount);
            inputForm.ShowDialog();
        }