public static SnapManager GetInstance() { lock (typeof(SnapManager)) { if (instance == null) { instance = new SnapManager(); try { instance.Init(); } catch (Exception ex) { throw ex; } } } return(instance); }
public static SnapManager GetInstance() { lock (typeof(SnapManager)) { if (instance == null) { instance = new SnapManager(); try { instance.Init(); } catch (Exception ex) { throw ex; } } } return instance; }
public void Dispose() { instance = null; }