public void showUser(String username) { Debug.WriteLine("showUser"); Debug.WriteLine(username); User user = User.find(username, authToken); Debug.WriteLine(user.getUsername()); viewUser = new ViewUser(this, 1, user); viewUser.Show(); }
public void newUser() { if (isLoggedIn()) { viewUser = new ViewUser(this, 0); viewUser.Text = "New User"; viewUser.Show(); } else { viewMessage = new ViewMessage(NOT_LOGGED_IN); viewMessage.ShowDialog(); } }