Пример #1
0
        private void EditButton_Click(object sender, EventArgs e)
        {
            HPS.BLL.DestinationAddressBLL.BLLDestinationAddress_TKeys DestinationAddressKey = new HPS.BLL.DestinationAddressBLL.BLLDestinationAddress_TKeys();
            DestinationAddressKey.DestinationAddressID_int = (Int32)this.DestinationAddressGridView.CurrentRow.Cells["colDestinationAddressID_int"].Value;
            DestinationAddressEntityForm DestinationAddress = new DestinationAddressEntityForm(BaseEntityForm1.enmState.Edit, (DataTable)this.DestinationAddressGridView.DataSource, DestinationAddressKey);

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

            DestinationAddress.ShowDialog();
        }