예제 #1
0
        private void btn_Voltar_Click(object sender, EventArgs e)
        {
            frm_Menu frmMn = new frm_Menu();

            frmMn.Show();

            this.Visible = false;
        }
        public frm_JM_TelaJogo()
        {
            try
            {
                InitializeComponent();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Erro");

                frm_Menu frmMn = new frm_Menu();
                frmMn.Show();

                this.Visible = false;
            }
        }
        public frm_JM_TelaJogo(int fe, int n, int l, int c)
        {
            try
            {
                InitializeComponent();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Erro");

                frm_Menu frmMn = new frm_Menu();
                frmMn.Show();

                this.Visible = false;
            }

            faixaEtaria = fe;
            nivel       = n;
            linhas      = l;
            colunas     = c;

            clique1 = null;
            clique2 = null;
        }