Beispiel #1
0
        private void CancelButton_Click(object sender, EventArgs e)
        {
            Hide();
            var logInForm = new LogInForm(service);

            logInForm.Show();
        }
Beispiel #2
0
        private void SingUpButton_Click(object sender, EventArgs e)
        {
            var username = UsernameTextBox.Text;
            var password = PasswordTextBox.Text;
            var name     = NameTextBox.Text;

            var subscriber = new Subscriber(username, password, name);
            var existent   = service.FindSubscriberUsername(username);

            if (existent)
            {
                service.AddSubscriber(subscriber);
                Hide();
                var logInForm = new LogInForm(service);
                logInForm.Show();
            }
            else
            {
                MessageBox.Show("Username taken!");
            }
        }
Beispiel #3
0
        private void AdminForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            var logInForm = new LogInForm(service);

            logInForm.Show();
        }