예제 #1
0
        private void auth(object sender, EventArgs e)
        {
            Sqlwork sqlw = new Sqlwork();

            Sqlwork.EdConStr(ServarName.Text, "EAS", Tlogin.Text, TPasswd.Text);
            if (sqlw.TryCon() == true)
            {
                this.Close();
            }
            else
            {
                MessageBox.Show("Неверный сервер, логин или пароль");
            }
        }
예제 #2
0
        static int Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Application.Run(new Autorisation());
            if (Sqlwork.access_ret() == 2)
            {
                return(0);
            }
            else
            {
                Application.Run(new DMS());
            }
            return(0);
        }