Example #1
0
        public override void Post()
        {
            // flag to tell if we want to add status to the database or post status and remove it
            bool v_AddToTheDataBase = true;

            // cancle the seconds in order to prevent bugs
            DateTime timeToPostWithoutSeconds = new DateTime(m_TimeToPost.Year, m_TimeToPost.Month, m_TimeToPost.Day, m_TimeToPost.Hour, m_TimeToPost.Minute, 0);

            PostDelayedStatusLogic postDelayedStatusLogic = PostDelayedStatusLogic.Instance;

            postDelayedStatusLogic.AddOrRemoveStatusFromDictionary(timeToPostWithoutSeconds.ToString(), m_Text, v_AddToTheDataBase);
        }
Example #2
0
        // constructor
        public Informer()
        {
            PostDelayedStatusLogic DelayedStatusLogic = PostDelayedStatusLogic.Instance;

            DelayedStatusLogic.Attach(new ReportDelayedStatusWasPosted(this.Notify));
        }