Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Register_ATV atividade = new Register_ATV();
            Dashboard    here      = new Dashboard();

            this.Hide();
            this.Closed += (s, args) => here.Close();
            atividade.Show();
        }
Пример #2
0
        private void ButtonRefeicao_Click(object sender, EventArgs e)
        {
            CreateFood food = new CreateFood();
            Dashboard  here = new Dashboard();

            this.Hide();
            this.Closed += (s, args) => here.Close();
            food.Show();
        }
Пример #3
0
 private void buttonBackDays_Click(object sender, EventArgs e)
 {
     Class.UserVar user = new Class.UserVar();
     if (int.Parse(user.Dia) == 1)
     {
         MessageBox.Show("Hoje é seu primeiro dia aqui!", "ERRO!", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         Historic  there = new Historic();
         Dashboard here  = new Dashboard();
         this.Hide();
         this.Closed += (s, args) => here.Close();
         there.Show();
     }
 }