示例#1
0
        private void Login_Load(object sender, EventArgs e)
        {
            btnLogin.Enabled = false;
            txtUN.Hide();
            txtUT.Hide();
            DateTime my = DateTimeOffset.Now.DateTime.ToLocalTime().ToUniversalTime();


            DateTime mys = DateTimeOffset.Now.UtcDateTime.ToLocalTime();



            label7.Text = my.ToString("MM/dd/yyyy  hh:mm:ss tt");

            timer1.Enabled = true;
            isConnected    = dbConnection.EstablishConnection();


            if (isConnected)
            {
                label1.Text = "Connected";

                sy = year.getSyActivated();

                SchoolYearModel sc = new SchoolYearModel(sy);

                label6.Text    = sy;
                label6.Visible = true;
            }
        }