Esempio n. 1
0
        private void btnEnter_Click(object sender, EventArgs e)
        {
            this.Hide();
            GlobalForm global = new GlobalForm();

            global.Show();
        }
Esempio n. 2
0
        // Вызов формы авторизации
        private void signInbtn_Click(object sender, EventArgs e)
        {
            var account = loginUser(loginfield.Text, paswdfield.Text);

            if (account == null)
            {
                labelWarningLogPaswd.Visible = true;
            }
            else
            {
                this.Hide();
                GlobalForm globalform = new GlobalForm();
                globalform.Show();
                us = account.UserId;
                globalform.LoginTXT(account.UserName, account.UserRight, account.UserId);
            }
        }