private void Form_Notification_Load(object sender, EventArgs e)
 {
     Placement_Application.Components.Resolution res = new Placement_Application.Components.Resolution();
     res.ResizeForm(this, Common.form_height, Common.form_width);
     timer1.Start();
     timer1.Interval           = 1000;
     this.label_top_batch.Text = Utility.getConfigLabel();
     notification  = new Entity_Notification();
     notifyManager = new NotificationManagerImpl();
     resetButtonControls();
 }
        private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
        {
            Entity_Notification notificationObj = form_Notification.notification;

            notificationObj.notificationDate = DateTime.Now;
            notificationObj.staffId          = Common.loggedUser.staffId;
            notificationObj.myConfigObj      = Utility.getConfigObj();

            if (form_Notification.notifyManager.notifyStudents(notificationObj.StudentList, notifyMsg))
            {
                e.Result = form_Notification.notifyManager.saveNotifications(notificationObj);
            }
        }