Beispiel #1
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dataGridView1.GetCellCount(DataGridViewElementStates.Selected) > 0)
     {
         PilotInfo form = new PilotInfo(Convert.ToInt32(
                                            dataGridView1.SelectedRows[0].Cells[0].Value.ToString()), admin);
         form.Owner = this;
         form.ShowDialog();
         form.Dispose();
     }
 }
Beispiel #2
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         PilotInfo form = new PilotInfo(Convert.ToInt32(
                                            pilotsList_dataGridView1.SelectedRows[0].Cells[0].Value.ToString()), parent.admin);
         form.Owner = this;
         form.ShowDialog();
         form.Dispose();
         ShowAllPilots(pilotsList_dataGridView1);
     }
 }
Beispiel #3
0
 private void toolStripButton5_Click(object sender, EventArgs e)
 {
     if (foundPilots_dataGridView3.Rows.Count > 0)
     {
         PilotInfo form = new PilotInfo(Convert.ToInt32(
                                            foundPilots_dataGridView3.SelectedRows[0].Cells[0].Value.ToString()), admin);
         form.Owner = this;
         form.ShowDialog();
         form.Dispose();
         admin.ShowPilots(foundPilots_dataGridView3, getExistsPilots(), filter);
     }
 }
Beispiel #4
0
 private void toolStripButton3_Click(object sender, EventArgs e)
 {
     if (pilotsList_dataGridView1.Rows.Count > 0)
     {
         PilotInfo form = new PilotInfo(
             Convert.ToInt32(
                 pilotsList_dataGridView1.SelectedRows[0].Cells[0].Value.ToString()), parent.admin);
         form.Owner = this;
         form.ShowDialog();
         // form.Dispose();
         ShowAllPilots(pilotsList_dataGridView1);
     }
 }
Beispiel #5
0
        private void ShowPilotName()
        {
            if (foundPilots_dataGridView3.GetCellCount(DataGridViewElementStates.Selected) > 0)
            {
                label13.Text    = "Пилот - " + foundPilots_dataGridView3.SelectedRows[0].Cells[2].Value + "  " + foundPilots_dataGridView3.SelectedRows[0].Cells[1].Value + " [" + foundPilots_dataGridView3.SelectedRows[0].Cells[3].Value + "]";
                button2.Enabled = foundPilots_dataGridView3.Rows.Count > 0 && !Convert.ToBoolean(foundPilots_dataGridView3.SelectedRows[0].Cells[6].Value);

                if (Convert.ToBoolean(foundPilots_dataGridView3.SelectedRows[0].Cells[6].Value))
                {
                    PilotInfo form = new PilotInfo(Convert.ToInt32(foundPilots_dataGridView3.SelectedRows[0].Cells[0].Value.ToString()), admin);
                    form.Owner = this;
                    form.ShowDialog();
                    form.Dispose();
                    admin.ShowPilots(foundPilots_dataGridView3, getExistsPilots(), filter);
                }
            }
            else
            {
                label13.Text = "Пилот не выбран";
            }
        }