Example #1
0
        private void vincita(string fronte)
        {
            switch (fronte)
            {
            case "f1":
                if (fNord <= 0)
                {
                    victory f = new victory(lblAnno.Text);
                    f.ShowDialog();
                    this.Close();
                }
                break;

            case "f2":
                if (fCentro <= 0)
                {
                    victory f = new victory(lblAnno.Text);
                    f.ShowDialog();
                    this.Close();
                }
                break;

            case "f3":
                if (fSud <= 0)
                {
                    victory f = new victory(lblAnno.Text);
                    f.ShowDialog();
                    this.Close();
                }
                break;

            default:
                break;
            }
        }
Example #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            victory v = new victory(lblAnno.Text);

            v.ShowDialog();
        }