Exemple #1
0
        private void btnExit_Click(object sender, EventArgs e)
        {
            AlertForm af = new AlertForm();

            af.setAlert("Your program has been minimized to system tray", AlertForm.alertTypeEnum.Info);
            this.Hide();
            notifyIcon1.Visible = true;
        }
Exemple #2
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     using (var dbContext = new TODOContext())
     {
         Noti = dbContext.UserSettings.Find(1).Noti;
     }
     if (Noti)
     {
         int num = CheckTask.checkOutOfDatelineCard();
         if (num > 0)
         {
             AlertForm af = new AlertForm();
             af.setAlert(String.Format("You have {0} unfinished cards !", num), AlertForm.alertTypeEnum.Warning);
         }
     }
 }