Ejemplo n.º 1
0
 public static void Update(short ID, string desc, Type noteType, string title)
 {
     for (int i = 0; i < Notifiers.Count; i++)
     {
         // Get the node
         if (Notifiers[i].Tag != null &&
             Notifiers[i].Tag.Equals("__Notifier|" + ID.ToString("X4")))
         {
             Notifier myNote = (Notifier)Notifiers[i];
             myNote.setNotifier(desc, noteType, title, true);
         }
     }
 }
Ejemplo n.º 2
0
        //-------------------------------------------------------------------------------------------------------------------------------
        //                                  Update the note with the new content. Reset the timeout if any
        //-------------------------------------------------------------------------------------------------------------------------------
        public static void Update(short ID,
                                  string desc,
                                  Type noteType,
                                  string title)
        {
            foreach (var note in notes)
            {
                if (note.Tag != null &&                                     // Get the node
                    note.Tag.Equals("__Notifier|" + ID.ToString("X4")))
                {
                    if (note.timerResetEvent != null)                            // Reset the timeout timer (if any)
                    {
                        note.timerResetEvent.Set();
                    }

                    Notifier myNote = (Notifier)note;
                    myNote.setNotifier(desc, noteType, title, true);        // Set the new note content
                }
            }
        }