public static WinTrrigerComprehensiveSmall GetWinInst(out bool blNew)//是否新创建实例 { blNew = false; if (g_WinTrrigerComprehensive == null) { blNew = true; g_WinTrrigerComprehensive = new WinTrrigerComprehensiveSmall(); } return(g_WinTrrigerComprehensive); }
private void BaseMetroWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { try { if ( baseUCTrrigerComprehensive1.Close() && baseUCTrrigerComprehensive2.Close() && baseUCTrrigerComprehensive3.Close() && baseUCTrrigerComprehensive4.Close() ) { g_WinTrrigerComprehensive = null; } else { e.Cancel = true; } } catch (Exception ex) { Log.L_I.WriteError(NameClass, ex); } }