コード例 #1
0
        private void dodajStrażakaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FiremanForm firemanForm = new FiremanForm();

            firemanForm.MdiParent = this;
            firemanForm.Show();
        }
コード例 #2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            FiremanForm firemanForm = new FiremanForm();

            firemanForm.MdiParent = this;
            firemanForm.Show();
        }
コード例 #3
0
        private void buttonDodaj_Click(object sender, EventArgs e)
        {
            FiremanForm fireman = new FiremanForm();

            fireman.MdiParent = this.ParentForm;
            fireman.Show();
        }
コード例 #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();
         }
     }
 }