Exemple #1
0
        private void GetAccess()
        {
            Login_access log = new Login_access(txtLogin.Text, txtPassword.Text);

            try
            {
                log.Logowanie();
                this.Hide();
                var menu = new MainBoard();
                menu.Show();
                this.Alert("Access granted", Messages.enmType.Success);
            }
            catch (Exception)
            {
                this.Alert("Wrong Data", Messages.enmType.Error);
            }
        }
        // Logowanie do Systemu
        private void btnLogin_Click(object sender, EventArgs e)
        {
            var menu = new MainBoard();

            menu.Show();
        }