Example #1
0
        public void ValidateUser(string User, string Password, Form frm)
        {
            FormOrders formOrd = new FormOrders();
            FormLogin  formLog = new FormLogin();

            User Result = SelectUser(User, crypt.EncryptString(Password));

            if (Result != null)
            {
                frm.Hide();
                formOrd.ShowDialog();
            }
        }
Example #2
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (x == 1)
            {
                FormLogin frm = new FormLogin();
                frm.Show();

                this.Hide();
                x++;
            }
            else
            {
                x++;
            }
        }