Beispiel #1
0
        private async void Login_Click(object sender, EventArgs e)
        {
            var userFound = await DocumentOperations.LoginOperations(UserName.Text, Password.Text);

            if (userFound)
            {
                MessageBox.Show("Login Successful", "Congratulations", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                MessageBox.Show("Incorrect User Name or Password", "Error", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Beispiel #2
0
        private async void Register_Click(object sender, EventArgs e)
        {
            await DocumentOperations.RegisterOperations(UserName.Text, Password.Text);

            MessageBox.Show("Registration Successful", "Congratulations", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }