Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string userName = txbUsername.Text;
            string passWord = txbPassword.Text;

            if (Login(userName, passWord))
            {
                Account Login = AccountData.Instance.GetAccount(userName);
                fMenu   f     = new fMenu(Login);
                this.Hide();
                f.ShowDialog();
            }
            else
            {
                MessageBox.Show("Sorry, we can't find an account.");
            }
        }
Exemplo n.º 2
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            var menu = new fMenu();

            menu.ShowDialog();
        }