Beispiel #1
0
        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);
                }));
            }
        }
Beispiel #2
0
        private void OpenQuestionButton_Click(object sender, EventArgs e)
        {
            AddOpenQuestionView view = new AddOpenQuestionView();
            AddOpenQuestionController controller = new AddOpenQuestionController(view);

            BackgroundDialogView background = new BackgroundDialogView(this, view);
        }
Beispiel #3
0
        private void ImportAccountButton_Click(object sender, EventArgs e)
        {
            AddAccountView view = new AddAccountView();
            AddAccountController controller = new AddAccountController(view);

            BackgroundDialogView background = new BackgroundDialogView(this, view);
        }
Beispiel #4
0
        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);
                }));
            }
        }