コード例 #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
 private void btnCfg_Click(object sender, EventArgs e)
 {
     btnCfg.selected = true;
     panelTudo.Hide();
     panelTudo.Controls.Clear();
     panelTudo.Show();
     avisos = new avisos();
     panelTudo.Controls.Add(avisos);
 }