private void tlB2_Click(object sender, EventArgs e) { Account person = (Account)bindSrcAccounts.List[bindSrcAccounts.Position]; FAccount ft = new FAccount(person); if (ft.ShowDialog() == DialogResult.OK) { bindSrcAccounts.List[bindSrcAccounts.Position] = person; } }
private void tlB1_Click(object sender, EventArgs e) { Account person = new Account(); FAccount fa = new FAccount(person); if (fa.ShowDialog() == DialogResult.OK) { bindSrcAccounts.Add(person); } }