Beispiel #1
0
        private void btn_Pregled_Click(object sender, EventArgs e)
        {
            try
            {
                if (cb_Registration.Checked)
                {
                    RegistrationForm a = new RegistrationForm()
                    {
                        matchId = int.Parse(tb_matchId.Text),
                        isLive  = cb_liveMatch.Checked
                    };

                    a.Show();
                }
                else
                {
                    ClubMatchForm _ClubMatchForm = new ClubMatchForm();
                    _ClubMatchForm.matchId = int.Parse(tb_matchId.Text);
                    _ClubMatchForm.isLive  = cb_liveMatch.Checked;
                    _ClubMatchForm.Show();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Moguće je samo brojeve unijeti! Pokušajte ponovo! Ovo je greška: " + ex.Message);
            }
        }
Beispiel #2
0
 private void dodajToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     ClubMatch.ClubMatchForm _ClubMatchForm = new ClubMatch.ClubMatchForm();
     _ClubMatchForm.Show();
 }