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