Beispiel #1
0
 public FormIgra(FormDialog d)
 {
     InitializeComponent();
     RoditeljForma = d;
     d.Close();
     NovaIgra();
     igra = this;
 }
Beispiel #2
0
        private void btnPrihvati_Click(object sender, EventArgs e)
        {
            FormIgra fi = new FormIgra(this);

            if (rdbDrugi.Checked)
            {
                fi.kontroler = new DvaIgracaController();
            }
            else
            {
                fi.kontroler = new JedanIgracController();
            }


            RoditeljForma.Hide();
            this.Hide();
            this.DialogResult = fi.ShowDialog();
            this.Close();
        }