public static WinSetCamera GetWinInst() { try { if (g_WinSetCamera == null) { g_WinSetCamera = new WinSetCamera(); } return(g_WinSetCamera); } catch (Exception ex) { Log.L_I.WriteError("WinRecord", ex); return(null); } }
private void BaseMetroWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { g_WinSetCamera = null; GC.Collect(); }