Exemple #1
0
        private void OK_Click(object sender, EventArgs e)
        {
            this.Close();
            ShopOwnerPage form4 = new ShopOwnerPage(username);

            form4.Show();
            //username = Usernametxt.Text;
            //if (username != "")
            //{
            //    if (File.Exists(path + Usernametxt.Text + ".xml"))
            //    {
            //        bool isValidUser = PasswordValidation();
            //        if (isValidUser == false)
            //        {
            //            MessageBox.Show("Invalid Password", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            //            Passwordtxt.Clear();
            //        }
            //        else
            //        {
            //            ValidationPage();
            //        }
            //    }
            //    else
            //    {
            //        MessageBox.Show("Invalid UserName", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            //        Usernametxt.Clear();
            //        Passwordtxt.Clear();
            //    }
            //}
        }
Exemple #2
0
 public void ValidationPage()
 {
     if (String.Equals(Options, "-> ShopOwnerLogin"))
     {
         this.Close();
         ShopOwnerPage form4 = new ShopOwnerPage(username);
         form4.Show();
     }
 }
Exemple #3
0
 public void ValidationPage()
 {
     this.Hide();
     if (String.Equals(Options, "-> ShopOwnerLogin"))
     {
         this.Close();
         ShopOwnerPage form4 = new ShopOwnerPage(username);
         form4.Show();
     }
     else
     {
         this.Close();
         CustomerEcommerce customerEcommerce = new CustomerEcommerce(username);
         customerEcommerce.Show();
     }
 }