Пример #1
0
        private void editBtn_Click(object sender, EventArgs e)
        {
            AeronaveModel aeronave = (Model.AeronaveModel)DGVAeronave.CurrentRow.DataBoundItem;
            if (aeronave == null) return;

            this.Hide();
            Abm_Aeronave.AeronaveForm aeronaveForm = new Abm_Aeronave.AeronaveForm(aeronave);
            aeronaveForm.Show();
            this.Close();
        }
Пример #2
0
 private void addBtn_Click(object sender, EventArgs e)
 {
     Abm_Aeronave.AeronaveForm aeronaveForm = new Abm_Aeronave.AeronaveForm();
     aeronaveForm.Show();
     this.Close();
 }