コード例 #1
0
 public void LogOut()
 {
     if (!IsLoggedIn)
         throw new InvalidOperationException ();
     currentUser = null;
 }
コード例 #2
0
 public void LogIn(String login, String password)
 {
     if (IsLoggedIn)
         throw new InvalidOperationException ();
     currentUser = new Credentials(login, password);
 }