예제 #1
0
        private void Voltar_Btn_Click(object sender, EventArgs e)
        {
            this.Hide();
            Tela_Chat Chat = new Tela_Chat();

            Chat.TopLevel   = false;
            Chat.AutoScroll = true;
            this.Controls.Add(Chat);
            Chat.Show();
        }
예제 #2
0
        private void Atendimento_Btn_Click(object sender, EventArgs e)
        {
            Sac_Label.Hide();
            Atendimento_Btn.Hide();

            Tela_Chat Chat          = new Tela_Chat();
            Panel     PainelCentral = new Panel();

            PainelCentral.Dock = DockStyle.Fill;
            Chat.TopLevel      = false;
            Chat.AutoScroll    = true;
            Chat.Show();

            PainelCentral.Controls.Add(Chat);
            PainelCentral.Show();

            this.Controls.Add(PainelCentral);
        }
예제 #3
0
 public void BotaoDoSac()
 {
     if (Home_btn.Active)
     {
         Home_btn.selected = false;
         Home.Close();
     }
     if (Solicitacao_btn.Active)
     {
         Solicitacao.Close();
     }
     if (!Atendimento_btn.Active)
     {
         Atendimento_btn.Active = true;
         Chat            = new Tela_Chat();
         Chat.TopLevel   = false;
         Chat.AutoScroll = true;
         this.Panel_Menus.Controls.Add(Chat);
         Chat.Show();
     }
     if (Cadastro_btn.Active)
     {
         Cadastro.Close();
     }
     if (Relatorios_btn.Active)
     {
         //Relatorios.Close();
     }
     if (Abastecimento_Btn.Active)
     {
         //Abastecimento.Close();
     }
     if (SAC_btn.Active)
     {
         Sac.Close();
     }
 }