Beispiel #1
0
 private void Form_Estatisticas_Load(object sender, EventArgs e)
 {
     label_utilizador.Select();
     User = new Utilizador();
     label_NivelMaximo.Text          = "Nivel Máximo Atigindo:\n" + User.get_nivel_maximo(Username_Atual);
     label_utilizador.Text           = Username_Atual;
     label_TotaldeDinheiroGanho.Text = "Dinheiro total ganho:\n" + User.GetTotalGanho(Username_Atual).ToString() + " $";
 }
Beispiel #2
0
        private void Form_Opcoes_Load(object sender, EventArgs e)
        {
            label_OPCOES.Select();
            panel_layout.VerticalScroll.Value     = 0;
            panel_layout.HorizontalScroll.Maximum = 0;
            panel_layout.VerticalScroll.Maximum   = 0;
            panel_layout.AutoScroll               = false;
            panel_layout.VerticalScroll.Visible   = false;
            panel_layout.HorizontalScroll.Visible = false;
            panel_layout.AutoScroll               = true;

            label_utilizador.Text = Username_Atual;
            User = new Utilizador();
            Conq = new Conquista();
        }
Beispiel #3
0
        private void Form_Conquistas_Load(object sender, EventArgs e)
        {
            label_utilizador.Select();
            label_utilizador.Text                 = Username_Atual;
            panel_layout.VerticalScroll.Value     = 0;
            panel_layout.HorizontalScroll.Maximum = 0;
            panel_layout.VerticalScroll.Maximum   = 0;
            panel_layout.AutoScroll               = false;
            panel_layout.VerticalScroll.Visible   = false;
            panel_layout.HorizontalScroll.Visible = false;
            panel_layout.AutoScroll               = true;

            User = new Utilizador();
            Conq = new Conquista();
            for (int ID_Conquista = 1; ID_Conquista <= 5; ID_Conquista++)
            {
                if (Conq.Verificar_Conquista(ID_Utilizador, ID_Conquista) == true)
                {
                    if (ID_Conquista == 1)
                    {
                        pictureBox_Conquistas_1milhao.BackgroundImage = Image.FromFile(@"..\..\Resources\Conquistas_1milhao.png");
                    }

                    if (ID_Conquista == 2)
                    {
                        pictureBox_Conquistas_10milhoes.BackgroundImage = Image.FromFile(@"..\..\Resources\Conquistas_10milhoes.png");
                    }

                    if (ID_Conquista == 3)
                    {
                        pictureBox_Conquistas_100milhoes.BackgroundImage = Image.FromFile(@"..\..\Resources\Conquistas_100milhoes.png");
                    }

                    if (ID_Conquista == 4)
                    {
                        pictureBox_Conquistas_Nivel10.BackgroundImage = Image.FromFile(@"..\..\Resources\Conquistas_Nivel10.png");
                    }

                    if (ID_Conquista == 5)
                    {
                        pictureBox_Conquistas_NivelMax.BackgroundImage = Image.FromFile(@"..\..\Resources\Conquistas_NivelMax.png");
                    }
                }
            }
        }
Beispiel #4
0
        private void Form_Jogo_Load(object sender, EventArgs e)
        {
            Form_Game_Over FGO = new Form_Game_Over(this, Owner);

            label_utilizador.Select();
            User = new Utilizador();
            Per  = new Pergunta();
            Conq = new Conquista();

            label_utilizador.Text = Username_Atual;
            label_tempo.Text      = "Tempo Restante - " + tempo.ToString();
            label_nivel.Text      = "Nivel atual: " + Per.Nivel_Get().ToString();
            Per.Pergunta_Set();
            label_pergunta.Text = Per.Pergunta_Get();
            label_r1.Text       = Per.Resposta1_Get();
            label_r2.Text       = Per.Resposta2_Get();
            label_r3.Text       = Per.Resposta3_Get();
            label_r4.Text       = Per.Resposta4_Get();
            timer_tempo.Start();
        }
Beispiel #5
0
 private void Form_Menu_Principal_Load(object sender, EventArgs e)
 {
     label_utilizador.Select();
     User = new Utilizador();
     label_utilizador.Text = Username_Atual;
 }
Beispiel #6
0
 private void Form_Login_Load(object sender, EventArgs e)
 {
     User = new Utilizador();
     textBox_UserName.Select();
 }
Beispiel #7
0
 private void Form_SignUp_Load(object sender, EventArgs e)
 {
     textBox_Username.Select();
     User = new Utilizador();
 }