Example #1
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                _manager.Destroy();
                ZWOptions.Instance.Destroy();
            }

            base.Dispose(disposing);
        }
 public static void Destroy()
 {
     lock (_lock)
     {
         if (_instance != null)
         {
             _instance.Destroy();
             _instance = null;
         }
         _destroyed = true;
     }
 }