private void EditButton_Click(object sender, EventArgs e) { HPS.BLL.CarSystemBLL.BLLCarSystem_TKeys CarSystemKey = new HPS.BLL.CarSystemBLL.BLLCarSystem_TKeys(); CarSystemKey.CarSystemID_int = (Int32)this.CarSystemGridView.CurrentRow.Cells["colCarSystemID_int"].Value; CarSystemEntityForm CarSystem = new CarSystemEntityForm(BaseEntityForm1.enmState.Edit, (DataTable)this.CarSystemGridView.DataSource, CarSystemKey); CarSystem.ShowDialog(); }
private void NewButton_Click(object sender, EventArgs e) { CarSystemEntityForm CarSystem = new CarSystemEntityForm((DataTable)this.CarSystemGridView.DataSource); CarSystem.ShowDialog(); }