private void menraking_Click(object sender, EventArgs e)
        {
            FRMRanking r = new FRMRanking(list);

            r.Show();
            this.Visible = false;
        }
Example #2
0
        private void btconfirmar_Click(object sender, EventArgs e)
        {
            result = oper.opresult(v1, v2, op);
            if (tbresp.Text == Convert.ToString(result))
            {
                MessageBox.Show("Você Acertou! 1 ponto");
                pont++;

                lbponto.Text = pont.ToString();
                valor();
                tbresp.Clear();
            }
            else
            {
                h2 = DateTime.Now;

                TimeSpan value = h2 - h1;

                MessageBox.Show("Game Over \nO valor é " + result);
                j.Nome     = nome;
                j.Foto     = img;
                j.Ponto    = pont;
                j.Dtinicio = value.Hours.ToString("00") + ":" + value.Minutes.ToString("00") + ":" + value.Seconds.ToString("00");
                list.Add(j);
                FRMRanking r = new FRMRanking(list);
                r.Show();
                this.Visible = false;
            }
        }