Пример #1
0
        private void EditButton_Click(object sender, EventArgs e)
        {
            HPS.BLL.ChargePriceBLL.BLLChargePrice_TKeys ChargePriceKey = new HPS.BLL.ChargePriceBLL.BLLChargePrice_TKeys();
            ChargePriceKey.ChargePriceID_int = (Int32?)this.ChargePriceGridView.CurrentRow.Cells["colChargePriceID_int"].Value;
            ChargePriceEntityForm ChargePrice = new ChargePriceEntityForm(BaseEntityForm1.enmState.Edit, (DataTable)this.ChargePriceGridView.DataSource, ChargePriceKey);

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

            ChargePrice.ShowDialog();
        }