Пример #1
0
 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("密碼或帳號錯誤");
     }
 }
Пример #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();
 }
Пример #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();
 }