public static void MkStaticInstance() { if (staticpipelistener == null) { staticpipelistener = new PipeListener(); staticpipelistener.StartPipeListener(); } }
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; }