private void button2_Click(object sender, EventArgs e) { inputAccount inputForm = new inputAccount(); inputForm.OnAccountChangedHandler += new EventHandler(onAddAccount); inputForm.ShowDialog(); }
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(); }