Exemple #1
0
        private void btnRekord_Click(object sender, EventArgs e)
        {
            IstecenoVreme istVr = new IstecenoVreme();

            istVr.lblScore.Text = lblScore.Text;
            istVr.ShowDialog();
            istVr.temna         = temna;
            istVr.svetla        = svetla;
            istVr.lblScore.Text = lblScore.Text;
            if (istVr.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                highscore.AddRezultat(new Rezultat(istVr.ime, score));
                SaveFile();
                HighScoreTable hs = new HighScoreTable();
                hs.Show();
                btnRekord.Visible = false;
                btnRekord.Enabled = false;
                return;
            }
            if (istVr.DialogResult == System.Windows.Forms.DialogResult.Yes)
            {
                return;
            }
        }
Exemple #2
0
        private void lblRekordi_Click(object sender, EventArgs e)
        {
            HighScoreTable hs = new HighScoreTable();

            hs.Show();
        }