Beispiel #1
0
        private void dodajWyjazdToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AccidentForm accidentForm = new AccidentForm();

            accidentForm.MdiParent = this;
            accidentForm.Show();
        }
Beispiel #2
0
        private void toolStripButton3_Click(object sender, EventArgs e)
        {
            AccidentForm accidentForm = new AccidentForm();

            accidentForm.MdiParent = this;
            accidentForm.Show();
        }
Beispiel #3
0
        private void buttonDodaj_Click(object sender, EventArgs e)
        {
            AccidentForm accidentForm = new AccidentForm();

            accidentForm.MdiParent = this.ParentForm;
            accidentForm.Show();
        }
Beispiel #4
0
 private void buttonEdytuj_Click(object sender, EventArgs e)
 {
     foreach (DataGridViewRow row in this.dataGridView1.SelectedRows)
     {
         Accident accident = row.DataBoundItem as Accident;
         if (accident != null)
         {
             AccidentForm accidentForm = new AccidentForm(accident);
             accidentForm.MdiParent = this.ParentForm;
             accidentForm.Show();
         }
     }
 }