예제 #1
0
 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;
 }
예제 #2
0
 public void bunifuFlatButton1_Click(object sender, EventArgs e)
 {
     btnInicio.Normalcolor = Vars.corFundoSide;
     btnInicio.selected    = true;
     panelTudo.Hide();
     panelTudo.Controls.Clear();
     panelTudo.Show();
     if (Properties.Settings.Default.permInt == 2)
     {
         if (principalProf == null)
         {
             principalProf = new principalProf();
         }
         panelTudo.Controls.Add(principalProf);
     }
     else
     {
         if (principal == null || principal.panelVerif.Controls.Count > 15 || principal.flowLayoutPanel1.Controls.Count > 15)
         {
             //nullBw();
             principal = new principal()
             {
                 Dock = DockStyle.Fill
             };
         }
         panelTudo.Controls.Add(principal);
     }
 }