Esempio n. 1
0
 private void CustomNotificationPopUp(NotificationPopUp obj)
 {
     notifyPopUp = obj;
     if (obj.Notify_Via == 1)
     {
     }
     else if (obj.Notify_Via == 2)
     {
     }
     else
     {
     }
     cs      = new CustomNotificationPopUp();
     cs.Top  = 30;
     cs.Left = Screen.PrimaryScreen.Bounds.Width - cs.Width - 30;
     cs.setLabel(obj.Name, obj.Description);
     cs.Show();
 }
Esempio n. 2
0
 private void CustomNotificationPopUp(NotificationPopUp obj)
 {
     notifyPopUp = obj;
     if (obj.Notify_Via == 1)
     {
         us = new UserSer();
         string uEmail = us.GetUserEmail(LogIn.user_ID);
         string ms     = obj.Name + "\n\n\n\n" + obj.Description;
         SendEMail(uEmail, ms);
     }
     else if (obj.Notify_Via == 2)
     {
         MessageBox.Show("This is Not Updated Yet. Bacause It has Money to get this service");
     }
     else
     {
         cs      = new CustomNotificationPopUp();
         cs.Top  = 30;
         cs.Left = Screen.PrimaryScreen.Bounds.Width - cs.Width - 30;
         cs.setLabel(obj.Name, obj.Description);
         cs.Show();
     }
 }