Ejemplo n.º 1
0
        private void vincitaBot(int fronte)
        {
            switch (fronte)
            {
            case 1:
                if (Convert.ToInt32(txtF1.Text) <= 0)
                {
                    frmLost lost = new frmLost(lblAnno.Text);
                    lost.ShowDialog();
                    this.Close();
                }
                break;

            case 2:
                if (Convert.ToInt32(txtF2.Text) <= 0)
                {
                    frmLost lost = new frmLost(lblAnno.Text);
                    lost.ShowDialog();
                    this.Close();
                }
                break;

            case 3:
                if (Convert.ToInt32(txtF3.Text) <= 0)
                {
                    frmLost lost = new frmLost(lblAnno.Text);
                    lost.ShowDialog();
                    this.Close();
                }
                break;

            default:
                break;
            }
        }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            frmLost lost = new frmLost(lblAnno.Text);

            lost.ShowDialog();
        }