public Notification_template(int count, Entity_Notification notifyObj, Form_Home homeForm)
        {
            this.homeForm  = homeForm;
            this.notifyObj = notifyObj;
            setNotificationObj();

            InitializeComponent();

            setTemplate();
            setNotifyIconForRow(count);
        }
        public static DialogResult Show(Entity_Notification notifyObject)
        {
            dialogPlacementInfo = new Dialog_PlacementInfo();
            //Placement_Application.Components.Resolution res = new Placement_Application.Components.Resolution();
            //res.ResizeForm(dialogPlacementInfo, 522, 359);

            dialogPlacementInfo.Opacity = Common.dialogOpacity;
            venue = notifyObject.PlacementObj.venue;
            dialogPlacementInfo.populateCriteriaBox(notifyObject.CriteriaObj);
            dialogPlacementInfo.populatePlacementInfoBox(notifyObject.PlacementObj);
            dialogPlacementInfo.setBuilders(notifyObject);

            dialogPlacementInfo.ShowDialog();
            return(result);
        }
        private void setBuilders(Entity_Notification notifyObject)
        {
            branchBulider = new StringBuilder();
            foreach (string item in notifyObject.CriteriaObj.branch)
            {
                branchBulider.AppendLine(item);
            }

            eligibleBulder = new StringBuilder();
            foreach (KeyValuePair <string, int> entry in notifyObject.EligibleStudentMapObj)
            {
                eligibleBulder.Append(entry.Key)
                .Append("  =>  ")
                .AppendLine(entry.Value.ToString());
            }
        }
Exemple #4
0
 public bool saveNotifications(Entity_Notification notificationObj)
 {
     Utility.logFile(Constant.METHOD_ENTER + Utility.getCurrentMethodName(1) + "(NotificationManagerImpl)", null, Constant.LOGTYPE_INFO);
     return(persistence.save(notificationObj));
 }