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(); } }
private void timer1_Tick(object sender, EventArgs e) { if (x == 1) { FormLogin frm = new FormLogin(); frm.Show(); this.Hide(); x++; } else { x++; } }