Пример #1
0
        private void EditButton_Click(object sender, EventArgs e)
        {
            HPS.BLL.CarBLL.BLLCar_TKeys CarKey = new HPS.BLL.CarBLL.BLLCar_TKeys();
            CarKey.CarID_int = (Int32)this.CarGridView.CurrentRow.Cells["colCarID_int"].Value;
            CarEntityForm Car = new CarEntityForm(BaseEntityForm1.enmState.Edit, (DataTable)this.CarGridView.DataSource, CarKey);

            Car.ShowDialog();
        }
Пример #2
0
        private void NewButton_Click(object sender, EventArgs e)
        {
            CarEntityForm Car = new CarEntityForm((DataTable)this.CarGridView.DataSource);

            Car.ShowDialog();
        }