private void btnLogin_Click(object sender, EventArgs e)
 {
     if (GetEncryptedText(tboAccount.Text).Equals(GetEncryptedText("backened")) && GetEncryptedText(tboPassword.Text).Equals(GetEncryptedText("taiwan")))
     {
         backened = SingletonForm <RestaurantBackenedManager> .FormSingleton();
     }
     else
     {
         MessageBox.Show("密碼或帳號錯誤");
     }
 }
Exemple #2
0
 /// <summary>
 /// 開啟manager(backened side)視窗。使用singleton模式,總共只能有一個manager視窗
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnBackened_Click(object sender, EventArgs e)
 {
     login = SingletonForm <RestaurantBackenedLogin> .FormSingleton();
 }
Exemple #3
0
 /// <summary>
 /// 開啟customer(fronted side)視窗。使用singleton模式,總共只能有一個customer視窗
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnFronted_Click(object sender, EventArgs e)
 {
     form1 = SingletonForm <Form1> .FormSingleton();
 }