Beispiel #1
0
        static void Main(string[] args)
        {
            //Console.WindowHeight = Console.LargestWindowHeight;
            //Console.WindowWidth = Console.LargestWindowWidth;
            //TeacherUI teacherUI = new TeacherUI();
            //teacherUI.Menu();
            //RoomUI roomUI = new RoomUI();
            //roomUI.Menu();
            //SubjectUI subjectUI = new SubjectUI();
            //subjectUI.Menu();
            //MajorUI majorUI = new MajorUI();
            //majorUI.Menu();
            //ClassUI classUI = new ClassUI();
            //classUI.Menu();
            //TermUI termUI = new TermUI();
            //termUI.Menu();
            //ClassUI classUI = new ClassUI();
            //classUI.Menu();
            //string classType = "hello";

            LoginUI loginUI = new LoginUI();

            loginUI.Login();
            //AssignmentUI assignmentUI = new AssignmentUI();
            //assignmentUI.Menu();

            //TermUI termUI = new TermUI();
            //termUI.Menu();
            //Assignment assignment = new Assignment("101191A","001", "001");

            //AssignmentHandler handler = new AssignmentHandler();
            //handler.Update("191A002001", assignment);
        }
Beispiel #2
0
 private void btnLogin_Click(object sender, EventArgs e)
 {
     if (loginUI.Login() && !loginUI.IsExpire())
     {
         this.tbPwd.Clear();
         this.lbAccount.Text = "";
         this.lbPwd.Text     = "";
         //this.Visible = false;
         ShowMainForm();
     }
 }
 private void Login()
 {
     if (aUI.IsValid())
     {
         try
         {
             aUI.Login();
         }
         catch (Exception ex)
         {
             OnError(this, new ErrorEventArgs(null, ex));
         }
     }
 }
Beispiel #4
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            if (loginUI.Login())
            {
                //this.tbAccount.Focus();
                //this.tbAccount.Clear();
                this.tbPwd.Clear();
                this.lbAccount.Text = "";
                this.lbPwd.Text     = "";
                this.Visible        = false;

                DeviceManage dm = DeviceManage.GetInstance(this);
                if (dm != null && !dm.IsDisposed)
                {
                    dm.Show();
                }
            }
        }
Beispiel #5
0
 public string Login(string InputValue)
 {
     return(loginUI.Login(InputValue));
 }
Beispiel #6
0
 private void Login()
 {
     LoginUI.Login("testss", "testss");
 }