Esempio n. 1
0
        // добавить пилота
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            NewPilot form = new NewPilot(parent.admin, -1, false);

            form.ShowDialog();
            //  form.Dispose();
            ShowAllPilots(pilotsList_dataGridView1);
        }
Esempio n. 2
0
        private void toolStripButton3_Click(object sender, EventArgs e)
        {
            NewPilot form = new NewPilot(admin, PilotID, true);

            form.ShowDialog();
            form.Dispose();
            ShowInfoFromPilot();
        }
Esempio n. 3
0
 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);
     }
 }
Esempio n. 4
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            NewPilot form = new NewPilot(admin, PF, textBox2.Text, textBox1.Text, textBox3.Text, textBox4.Text, textBox5.Text);

            form.Owner = this;
            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                filter = PF.Filter;
                admin.ShowPilots(foundPilots_dataGridView3, getExistsPilots(), filter + PilotFilter());
            }
        }