private void BtnStartGame_Click(object sender, EventArgs e) { if (!String.IsNullOrWhiteSpace(TbDomacin.Text) && !String.IsNullOrWhiteSpace(TbGost.Text)) { FInfoZaMec info = new FInfoZaMec(this, TbDomacin.Text, TbGost.Text); info.ShowDialog(); // this.Dispose(); } else { MessageBox.Show("Izaberite reprezentacije!"); } }
private void infoFormaToolStripMenuItem_Click(object sender, EventArgs e) { Reprezentacija r1 = new Reprezentacija(); r1.Ime = "Srbija"; Reprezentacija r2 = new Reprezentacija(); r2.Ime = "Nemacka"; Stadion s1 = new Stadion(); s1.Ime = "Test"; FInfoZaMec test = new FInfoZaMec(r1, r2, s1); test.ShowDialog(); }
private void infoFormaToolStripMenuItem_Click(object sender, EventArgs e) { Reprezentacija r1 = new Reprezentacija(); r1.Ime = "Srbija"; Reprezentacija r2 = new Reprezentacija(); r2.Ime = "Nemacka"; Stadion s1 = new Stadion(); s1.Ime = "Test"; FInfoZaMec test = new FInfoZaMec(r1,r2,s1); test.ShowDialog(); }