private void btnEdit_Click(object sender, EventArgs e) { Tablet tab = (Tablet)bindSrcTab.List[bindSrcTab.Position]; fTablet ft = new fTablet(tab); if (ft.ShowDialog() == DialogResult.OK) { bindSrcTab.List[bindSrcTab.Position] = tab; } }
private void btnAdd_Click(object sender, EventArgs e) { Tablet tab = new Tablet(); fTablet ft = new fTablet(tab); if (ft.ShowDialog() == DialogResult.OK) { bindSrcTab.Add(tab); } }