Пример #1
0
        private void EditButton_Click(object sender, EventArgs e)
        {
            HPS.BLL.PortPlacesBLL.BLLPortPlaces_TKeys PortPlacesKey = new HPS.BLL.PortPlacesBLL.BLLPortPlaces_TKeys();
            PortPlacesKey.PortPlacesID_int = (Int32?)this.PortPlacesGridView.CurrentRow.Cells["colPortPlacesID_int"].Value;
            PortPlacesEntityForm PortPlaces = new PortPlacesEntityForm(BaseEntityForm1.enmState.Edit, (DataTable)this.PortPlacesGridView.DataSource, PortPlacesKey);

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

            PortPlaces.ShowDialog();
        }