Exemple #1
0
 public void Tick( Object stateInfo )
 {
     if ( isTaken == false )
         {
             BusinessTier.SendNotification sender = new BusinessTier.SendNotification();
             sender.SendNotificationToUser(" ", DateTime.Now.ToShortDateString() +  " Did you take your medecine ? ");
             isTaken = true;
         }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            string id = (string)(Session["RoleID"]);
            this.lbl_careid.Text = id;
            /*
            Timers time = new Timers();
            time.start();
             * */

            BusinessTier.SendNotification noti_sender = new BusinessTier.SendNotification();
            noti_sender.SendNotificationToUser(" ", DateTime.Now.ToShortDateString() +  " Did you take your medecine ? ");
        }