Пример #1
0
        private void signOnBtn_Click(object sender, EventArgs e)
        {
            tmpLocation = selectLocation.Text;

            Properties.Settings.Default.connType = tmpLocation;
            Properties.Settings.Default.Save();

            if (screenName.Text == "New User" || screenName.Text == "Existing Member")
            {
                signup_form suf = new signup_form();
                suf.Owner     = this;
                suf.MdiParent = MdiParent;
                suf.Show();
            }
            else if (screenName.Text == "Guest")
            {
                tmpUsername = "******";
                Close();
            }
            else
            {
                if (RestAPI.loginAccount(screenName.Text, passBox.Text))
                {
                    Close();
                }
                else
                {
                    MessageBox.Show("Account either doesn't exist, or incorrect password.");
                }
            }
        }
Пример #2
0
        private void setupBtn_Click(object sender, EventArgs e)
        {
            signup_form suf = new signup_form();

            suf.Owner     = this;
            suf.MdiParent = MdiParent;
            suf.Show();
        }