/// <summary> /// Call actions without raising exceptions. /// </summary> static public void TryCatchManage(ShowExceptionMode mode, params Action[] actions) { foreach (var action in actions) { TryCatchManage(mode, action); } }
/// <summary> /// Call an action without raising exceptions. /// </summary> static public bool TryCatchManage(ShowExceptionMode mode, Action action) { try { action(); return(true); } catch (Exception ex) { ex.Manage(mode); return(false); } }