Пример #1
0
 void Perfil()
 {
     try
     {
         LimparForms();
         Panel_Carregando.Visible = true;
         Panel_Carregando.Refresh();
         this.Panel_Usuario.Visible  = false;
         this.Panel_Materias.Visible = false;
         this.Refresh();
         Panel_Materias.Refresh();
         Panel_Usuario.Refresh();
         Form frm = new Form_Perfil();
         frm.MdiParent = this;
         frm.Show();
         Panel_Carregando.Visible = false;
     }
     catch
     {
         MessageBox.Show("Erro de Conexão, tente novamente", "Enigma", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Form frm = new Form_Home();
         frm.MdiParent = this;
         frm.Show();
         Program.PanelCarregando.Visible = false;
     }
 }
Пример #2
0
 private void Grid_Materias_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (Grid_Materias.RowCount > 0)
     {
         try
         {
             LimparForms();
             Panel_Carregando.Visible = true;
             Panel_Carregando.Refresh();
             this.Panel_Usuario.Visible  = false;
             this.Panel_Materias.Visible = false;
             this.Refresh();
             MateriaDAL dal  = new MateriaDAL();
             Form       form = new Form_Conteudo(dal.Consultar(Grid_Materias.CurrentRow.Cells[0].Value.ToString()));
             form.MdiParent = this;
             form.Show();
             Panel_Carregando.Visible = false;
         }
         catch (Exception)
         {
             MessageBox.Show("Erro de Conexão, tente novamente", "Enigma", MessageBoxButtons.OK, MessageBoxIcon.Error);
             Program.PanelCarregando.Visible = false;
             Form frm = new Form_Home();
             frm.MdiParent = this;
             frm.Show();
         }
     }
 }
Пример #3
0
 void Desempenho()
 {
     try
     {
         this.Panel_Usuario.Visible  = false;
         this.Panel_Materias.Visible = false;
         this.Refresh();
         Form frm = new Form_Desempenho();
         frm.ShowDialog();
     }
     catch
     {
         MessageBox.Show("Erro de Conexão, tente novamente", "Enigma", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Form frm = new Form_Home();
         frm.MdiParent = this;
         frm.Show();
     }
 }
Пример #4
0
 void MinhasPR()
 {
     try
     {
         this.Panel_Usuario.Visible  = false;
         this.Panel_Materias.Visible = false;
         this.Refresh();
         Form frm = new Form_MinhasPerguntasRespostas();
         frm.ShowDialog();
         Panel_Carregando.Visible = false;
     }
     catch
     {
         MessageBox.Show("Erro de Conexão, tente novamente", "Enigma", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Form frm = new Form_Home();
         frm.MdiParent = this;
         frm.Show();
     }
 }