private void bunifuImageButton1_Click(object sender, EventArgs e)
 {
     btnMenu_Click(btnMenu, null);
     Vars.logado = false;
     if (Properties.Settings.Default.permInt != 3 || Properties.Settings.Default.permInt != 9)
     {
         Properties.Settings.Default.permInt = 0;
     }
     Properties.Settings.Default.nome         = "";
     Properties.Settings.Default.usuario      = "";
     Properties.Settings.Default.sala         = "";
     Properties.Settings.Default.lembrarsenha = 0;
     Properties.Settings.Default.Save();
     btnInicio.Normalcolor     = Color.DimGray;
     btnHorario.Normalcolor    = Color.DimGray;
     btnCalendario.Normalcolor = Color.DimGray;
     btnTurmas.Normalcolor     = Color.DimGray;
     btnCfg.Normalcolor        = Color.DimGray;
     sideBar.BackColor         = Color.DimGray;
     panel1.Enabled            = false;
     login1 = new login();
     panelTudo.Controls.Clear();
     panelTudo.Controls.Add(login1);
     nullBw();
     principal     = null;
     principalProf = null;
     addTarefa     = null;
     calendario    = null;
     dia           = null;
     diaProf       = null;
     info          = null;
     avisos        = null;
     registrar     = null;
 }
 private void btnHorario_Click(object sender, EventArgs e)
 {
     btnHorario.selected = true;
     panelTudo.Hide();
     panelTudo.Controls.Clear();
     panelTudo.Show();
     if (info == null || !info.label7.Visible)
     {
         info = new info(Properties.Settings.Default.sala)
         {
             Dock = DockStyle.Fill
         }
     }
     ;
     panelTudo.Controls.Add(info);
 }