コード例 #1
0
 //Botões do Painel de menus
 private void Home_btn_Click(object sender, EventArgs e)
 {
     if (!Home_btn.Active)
     {
         Home            = new Tela_Home();
         Home.TopLevel   = false;
         Home.AutoScroll = true;
         this.Panel_Menus.Controls.Add(Home);
         Home.Show();
     }
     if (Solicitacao_btn.Active)
     {
         Solicitacao.Close();
     }
     if (Atendimento_btn.Active)
     {
         Chat.Close();
     }
     if (Cadastro_btn.Active)
     {
         Cadastro.Close();
     }
     if (Relatorios_btn.Active)
     {
         //Relatorios.Close();
     }
     if (Abastecimento_Btn.Active)
     {
         //Abastecimento.Close();
     }
     if (SAC_btn.Active)
     {
         Sac.Close();
     }
 }
コード例 #2
0
        public Principal()
        {
            InitializeComponent();

            if (Home_btn.Active)
            {
                Home            = new Tela_Home();
                Home.TopLevel   = false;
                Home.AutoScroll = true;
                this.Panel_Menus.Controls.Add(Home);
                Home.Show();
            }
        }
コード例 #3
0
        private void Home_btn_Click(object sender, EventArgs e)
        {
            if (Solicitacao_btn.Active)
            {
                Solicitacao.Close();
            }

            if (!Home_btn.Active)
            {
                Home            = new Tela_Home();
                Home.TopLevel   = false;
                Home.AutoScroll = true;
                this.Panel_Menus.Controls.Add(Home);
                Home.Show();
            }
        }
コード例 #4
0
        public TelaPrincipal(String Usuario, String Senha)
        {
            InitializeComponent();
            Usuario_VindoDoLogin = Usuario;
            Senha_VindoDoLogin   = Senha;
            Console.WriteLine("Usuario Logado: " + Usuario);
            Console.WriteLine("Usuario Logado: " + Senha);


            //Incia Sempre o sistema com o Botao Home Ativo
            if (!Home_btn.Active)
            {
                Home_btn.Active = true;
                Home            = new Tela_Home();
                Home.TopLevel   = false;
                Home.AutoScroll = true;
                this.Panel_Menus.Controls.Add(Home);
                Home.Show();
            }
        }