public static WinCamera2 GetWinInst() { try { if (g_WinCamera2 == null) { g_WinCamera2 = new WinCamera2(); } return(g_WinCamera2); } catch (Exception ex) { Log.L_I.WriteError("WinCamera2", ex); return(null); } }
public override void BaseMetroWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { g_BaseUCDisplayCamera.RecoverPhoto_Invoke(); g_WinCamera2 = null; }