Ejemplo n.º 1
0
 public void Close()
 {
     // Before destruct the object, delete the event handler.
     _synth.StateChanged -= SynthStateChanged;
     // Clear the notification queue.
     Msgs.Clear();
 }
Ejemplo n.º 2
0
 public static void Init(string file)
 {
     //	Logger.Debug("msg file="+file);
     if (File.Exists(file))
     {
         Msgs.Clear();
         string[] msgs = File.ReadAllLines(file);
         foreach (string msg in msgs)
         {
             if (string.IsNullOrEmpty(msg) || msg.StartsWith("#"))
             {
                 continue;
             }
             Msgs.Add(msg);
         }
     }
 }