private void OnAuthButtonClicked(object sender, EventArgs args) { username = this.emailEntry.Text; password = this.passwordEntry.Text; HmBackend.PreserveCredentials(username, password); try { Hiveminder.Hiveminder hm = new Hiveminder.Hiveminder(username, password); } catch (Exception e) { authButton.Label = "Try Again"; } }
private void OnAuthButtonClicked(object sender, EventArgs args) { username = this.emailEntry.Text; password = this.passwordEntry.Text; HmBackend.PreserveCredentials(username, password); try { Hiveminder.Hiveminder hm = new Hiveminder.Hiveminder(username, password); } catch { authButton.Label = "Try Again"; } }