Ejemplo n.º 1
0
 public static void MkStaticInstance()
 {
     if (staticpipelistener == null)
     {
         staticpipelistener = new PipeListener();
         staticpipelistener.StartPipeListener();
     }
 }
Ejemplo n.º 2
0
 public void InitListner(PipeListener pl, ConfigBase cb)
 {
     if (appconfig != null)
     {
         throw new Exception("DO NOT RE-INITIALIZE.");
     }
     pipelistener              = pl;
     pipelistener.OnMusicPlay += OnMusicPlay;
     appconfig     = cb;
     isInitialized = true;
 }