Ejemplo n.º 1
0
 /// <summary>
 /// Add new Item into collection
 /// </summary>
 /// <param name="item">ORGANIZER_ITEM structure</param>
 /// <returns>Bool value after end operation</returns>
 public bool Add(ORGANIZER_ITEM item)
 {
     try {
         orgList.Add(item);
         return(true);
     } catch {
         return(false);
     }
 }
Ejemplo n.º 2
0
        public void SignalActive()
        {
            DateTime       dtNow = DateTime.Now;
            ORGANIZER_ITEM first = GetFirstDate();

            if (first != null && first.isActive == true && first.dtStartTime >= dtNow && first.dtStartTime.AddMinutes(1) < dtNow)
            {
                switch (first.eSignal)
                {
                case Signal.MesssBox: MessageBox.Show(first.ToString(), "Alarm", MessageBoxButtons.OK, MessageBoxIcon.Information); break;

                case Signal.Song: break;

                default: break;
                }
            }
        }