Beispiel #1
0
        private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {
            Form      frm1 = Application.OpenForms["StartForm"];
            StartForm s    = frm1 as StartForm;

            s.k--;
            if (s.k == 0)
            {
                frm1.Show();
            }
        }
Beispiel #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //FThemHoaDon s = new FThemHoaDon();
            //Ketoan.Controls.DanhMuc.DMBANGGIA.DMBANGGIA e = new Controls.DanhMuc.DMBANGGIA.DMBANGGIA();
            StartForm e = new StartForm();

            //s.Tag = 0;
            //Login login = new Login();
            Application.Run(e);
        }