/// <summary> /// Adds and removes the Needs Compiled Error as needed /// </summary> private void AddNeedsCompileErorr() { var eIndex = ErrorStrings.IndexOf(Constants.ERROR_COMPILE); if (_needsCompile && eIndex < 0) { ErrorStrings.Add(Constants.ERROR_COMPILE); OnErrorStringsChanged?.Invoke(this, null); } else if (!_needsCompile && eIndex >= 0) { ErrorStrings.RemoveAt(eIndex); OnErrorStringsChanged?.Invoke(this, null); } }
/// <summary> /// Utility method for invoking the ErrorStringChanged event /// </summary> protected void InvokeOnErrorStringsChanged() { OnErrorStringsChanged?.Invoke(this, null); }