コード例 #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();
            }
        }
コード例 #2
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (x == 1)
            {
                FormLogin frm = new FormLogin();
                frm.Show();

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