public OtherUserWC(user currentUser) { InitializeComponent(); txtOtherUserName.Text = currentUser.Username; webInterface = new WebManager(txtOtherUserName.Text, ""); checkCount(); }
public void Login() { if (!userDataManager.checkSaveFile()) { LoginDialog loginDialog = new LoginDialog(); loginDialog.ShowDialog(); if (loginDialog.DialogResult == DialogResult.OK) { string userName = loginDialog.Username; string secret = loginDialog.SecretCode; userDataManager.createFile(userName, secret); Login(); } else { Environment.Exit(0); } } else { loggedInUser = new user(userDataManager.returnValues()[0], userDataManager.returnValues()[1]); } }