Example #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            splash();
            testarBanco();

            visao.FormPrincipal principal = new visao.FormPrincipal();
            principal.Usuario = validacao();
            Application.Run(principal);
        }
        private void FormProduto_FormClosing(object sender, FormClosingEventArgs e)
        {
            FormPrincipal pai = (FormPrincipal)this.MdiParent;

            pai.produto = null;
        }
        private void FormCardapio_FormClosing(object sender, FormClosingEventArgs e)
        {
            FormPrincipal pai = (FormPrincipal)this.MdiParent;

            pai.cardapios = null;
        }