Exemplo n.º 1
0
        private void dodajStrażakaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FiremanForm firemanForm = new FiremanForm();

            firemanForm.MdiParent = this;
            firemanForm.Show();
        }
Exemplo n.º 2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            FiremanForm firemanForm = new FiremanForm();

            firemanForm.MdiParent = this;
            firemanForm.Show();
        }
Exemplo n.º 3
0
        private void buttonDodaj_Click(object sender, EventArgs e)
        {
            FiremanForm fireman = new FiremanForm();

            fireman.MdiParent = this.ParentForm;
            fireman.Show();
        }
Exemplo n.º 4
0
 private void buttonEdytuj_Click(object sender, EventArgs e)
 {
     foreach (DataGridViewRow row in this.dataGridView1.SelectedRows)
     {
         Fireman fireman = row.DataBoundItem as Fireman;
         if (fireman != null)
         {
             FiremanForm firemanForm = new FiremanForm(fireman);
             firemanForm.MdiParent = this.ParentForm;
             firemanForm.Show();
         }
     }
 }