public static bool ConfirmCancel(IObject bo, Form owner) { return(!((bo != null) && (bo.IsNew || bo.HasChanges) && !WinUtils.ConfirmCancel(owner))); }