コード例 #1
0
        private void btnLogIn_Click(object sender, EventArgs e)
        {
            p = service.LogIn(txtUsername.Text, txtPassword.Text);
            if (p != null)
            {
                pnlLogin.Visible = false;
                panelLoggedIn.Visible = true;
                lblLogInStatus.Text = "Logged in as " + p.Username;
                txtPassword.Text = "";
                txtUsername.Text = "";
                btnMyLists.Enabled = true;
                }
            else
            {
                MessageBox.Show("Login mislykkedes, prøv igen");
            }

        }
コード例 #2
0
 public Form1()
 {
     p = null;
     InitializeComponent();
 }