private void toolStripButton3_Click(object sender, EventArgs e) { NewPilot form = new NewPilot(admin, PilotID, true); form.ShowDialog(); form.Dispose(); ShowInfoFromPilot(); }
private void toolStripButton5_Click(object sender, EventArgs e) { if (pilotsList_dataGridView1.Rows.Count > 0) { NewPilot form = new NewPilot(parent.admin, Convert.ToInt32( pilotsList_dataGridView1.SelectedRows[0].Cells[0].Value.ToString()), true); form.ShowDialog(); form.Dispose(); ShowAllPilots(pilotsList_dataGridView1); } }