Esempio n. 1
0
        private void ButtonVoltar_Click(object sender, EventArgs e)
        {
            Historic  here  = new Historic();
            Dashboard there = new Dashboard();

            this.Hide();
            this.Closed += (s, args) => here.Close();
            there.Show();
        }
Esempio n. 2
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();
     }
 }