예제 #1
0
        private void EditButton_Click(object sender, EventArgs e)
        {
            HPS.BLL.PlateCityBLL.BLLPlateCity_TKeys PlateCityKey = new HPS.BLL.PlateCityBLL.BLLPlateCity_TKeys();
            PlateCityKey.PlateCityID_int = (Int32?)this.PlateCityGridView.CurrentRow.Cells["colPlateCityID_int"].Value;
            PlateCityEntityForm PlateCity = new PlateCityEntityForm(BaseEntityForm1.enmState.Edit, (DataTable)this.PlateCityGridView.DataSource, PlateCityKey);

            PlateCity.ShowDialog();
        }
예제 #2
0
        private void NewButton_Click(object sender, EventArgs e)
        {
            PlateCityEntityForm PlateCity = new PlateCityEntityForm((DataTable)this.PlateCityGridView.DataSource);

            PlateCity.ShowDialog();
        }