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

            while (true)
            {
                lg.ShowDialog();
                if (lg.DialogResult == DialogResult.OK)
                {
                    Application.Run(new MainWindow(lg.main_id));
                    break;
                }
                else if (lg.DialogResult == DialogResult.Ignore)
                {
                    Signup sgp = new Signup();
                    sgp.ShowDialog();
                    if (sgp.DialogResult == DialogResult.OK)
                    {
                        continue;
                    }
                }
                else
                {
                    break;
                }
            }
            return;
        }
Example #2
0
        private void btn_SignUp_Click(object sender, EventArgs e)
        {
            Signup sign = new Signup();

            sign.ShowDialog();
        }