Exemple #1
0
 public Login(TodayClassCrawler todayClassCrawler)
 {
     InitializeComponent();
     this.todayClassCrawler = todayClassCrawler;
     GetPic();
     this.BackColor  = Color.Gray;
     TransparencyKey = Color.Gray;
     if (DateTime.Now.Hour >= 19 || DateTime.Now.Hour < 6)
     {
         this.BackgroundImage = Image.FromFile("../../Resource/login_night.png");
     }
     comboBox1.DataSource = Glo.students;
 }
Exemple #2
0
 private void pictureBox9_MouseClick(object sender, MouseEventArgs e)
 {
     try
     {
         if (Glo.user == null)
         {
             TodayClassCrawler todayClassCrawler = new TodayClassCrawler();
             Login             login             = new Login(todayClassCrawler);
             login.ShowDialog();
         }
     }
     catch (Exception e2)
     {
         string s = e2.Message;
     }
 }