Ejemplo n.º 1
0
 /// <summary>
 /// 로그인을 담당하는 메서드
 /// </summary>
 public void Login()
 {
     drawUI.LoginTitle();
     id = drawUI.GetConsoleIdNumber(7);
     if (id.Equals("back"))
     {
         Console.SetCursorPosition(5, 8);
         return;
     }
     if (id.Equals("0"))
     {
         Console.SetCursorPosition(5, 8);
         return;
     }
     Console.SetCursorPosition(14, 6);
     securePassword = drawUI.GetConsoleSecurePassword();
     stringPassword = new NetworkCredential("", securePassword).Password;
     if (stringPassword.Equals("b"))
     {
         Console.SetCursorPosition(5, 8);
         return;
     }
     if (stringPassword.Equals("0"))
     {
         Console.SetCursorPosition(5, 8);
         return;
     }
     if (dataControl.LoginCheck(id, stringPassword))
     {
         MainMenu();
     }
     else
     {
         Login();
     }
 }