public void ShowCodeResult(Model.Pincode instance, HttpStatusCode status) { if (status == HttpStatusCode.OK) { this.Code = instance; } else { this.CodeTextBox.Invoke((Action)(() => { LoginButton.Enabled = true; CodeTextBox.Enabled = true; PasswordTextBox.Enabled = true; FailedDialogView failed = new FailedDialogView(); failed.getLabelFailed().Text = "De code is incorrect."; BackgroundDialogView background = new BackgroundDialogView(this, failed); })); } }
private void OpenQuestionButton_Click(object sender, EventArgs e) { AddOpenQuestionView view = new AddOpenQuestionView(); AddOpenQuestionController controller = new AddOpenQuestionController(view); BackgroundDialogView background = new BackgroundDialogView(this, view); }
private void ImportAccountButton_Click(object sender, EventArgs e) { AddAccountView view = new AddAccountView(); AddAccountController controller = new AddAccountController(view); BackgroundDialogView background = new BackgroundDialogView(this, view); }
public void ShowPasswordResult(bool result) { if (!result) { this.CodeTextBox.Invoke((Action)(() => { LoginButton.Enabled = true; CodeTextBox.Enabled = true; PasswordTextBox.Enabled = true; FailedDialogView failed = new FailedDialogView(); failed.getLabelFailed().Text = "Het wachtwoord is incorrect."; BackgroundDialogView background = new BackgroundDialogView(this, failed); })); } }