コード例 #1
0
ファイル: DataStream.cs プロジェクト: JDM152/Streamline
        /// <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);
            }
        }
コード例 #2
0
ファイル: DataStream.cs プロジェクト: JDM152/Streamline
 /// <summary>
 ///     Utility method for invoking the ErrorStringChanged event
 /// </summary>
 protected void InvokeOnErrorStringsChanged()
 {
     OnErrorStringsChanged?.Invoke(this, null);
 }