private int AddSystemMessage(string systemMessage, bool critical, SystemMessageStyle systemMessageStyle, string rowColumnId) { SystemMessage e = new SystemMessage(systemMessage, critical, systemMessageStyle, rowColumnId); Add(e); return(Count); }
/// <summary> /// Adds the systemMessage. /// </summary> /// <param name="systemMessage">The error.</param> /// <param name="critical">if set to <c>true</c> [critical].</param> /// <param name="systemMessageStyle">The error style.</param> /// <param name="rowColumnId">The row column ColumnId.</param> private void AddSystemMessage(string systemMessage, bool critical, SystemMessageStyle systemMessageStyle, string rowColumnId) { Message = systemMessage; Critical = critical; SystemMessageStyle = systemMessageStyle; RowColumnID = rowColumnId; }
/// <summary> /// Constructs a new error. /// </summary> /// <param name="systemMessage">The error to be shown.</param> /// <param name="systemMessageStyle">Determines how the error should be displayed.</param> /// <param name="rowColumnId">Determines which row and column the error should be displayed in.</param> public SystemMessage(string systemMessage, SystemMessageStyle systemMessageStyle, string rowColumnId) { AddSystemMessage(systemMessage, false, systemMessageStyle, rowColumnId); }
/// <summary> /// Initializes a new instance of the <see cref="SystemMessage">error</see> class. /// </summary> /// <param name="systemMessage">The error to be shown.</param> /// <param name="critical">Critical errors are errors not caused by users. Critical errors halt most actions after the error occurred.</param> /// <param name="systemMessageStyle">Determines how the error should be displayed.</param> /// <param name="rowColumnId">Determines which row and column the error should be displayed in.</param> public SystemMessage(string systemMessage, bool critical, SystemMessageStyle systemMessageStyle, string rowColumnId) { AddSystemMessage(systemMessage, critical, systemMessageStyle, rowColumnId); }
/// <summary> /// Adds the systemMessage. /// </summary> /// <param name="systemMessage">The error.</param> /// <param name="critical">if set to <c>true</c> [critical].</param> /// <param name="systemMessageStyle">The error style.</param> /// <param name="rowColumnId">The row column ColumnId.</param> private void AddSystemMessage(string systemMessage, bool critical, SystemMessageStyle systemMessageStyle, string rowColumnId) { Message = systemMessage; Critical = critical; SystemMessageStyle = systemMessageStyle; RowColumnID = rowColumnId; }
/// <summary> /// Constructs a new error. /// </summary> /// <param name="systemMessage">The error to be shown.</param> /// <param name="systemMessageStyle">Determines how the error should be displayed.</param> /// <param name="rowColumnId">Determines which row and column the error should be displayed in.</param> public SystemMessage(string systemMessage, SystemMessageStyle systemMessageStyle, string rowColumnId) { AddSystemMessage(systemMessage, false, systemMessageStyle, rowColumnId); }
/// <summary> /// Initializes a new instance of the <see cref="SystemMessage">error</see> class. /// </summary> /// <param name="systemMessage">The error to be shown.</param> /// <param name="critical">Critical errors are errors not caused by users. Critical errors halt most actions after the error occurred.</param> /// <param name="systemMessageStyle">Determines how the error should be displayed.</param> /// <param name="rowColumnId">Determines which row and column the error should be displayed in.</param> public SystemMessage(string systemMessage, bool critical, SystemMessageStyle systemMessageStyle, string rowColumnId) { AddSystemMessage(systemMessage, critical, systemMessageStyle, rowColumnId); }
/// <summary> /// Initializes a new instance of the <see cref="SystemMessageCollection">error collection</see> class. /// </summary> /// <param name="parent">Owner of this object.</param> /// <param name="defaultSystemMessageStyle">Determines how the errors should be displayed. This can be overridden for each individual systemMessage.</param> public SystemMessageCollection(Grid parent, SystemMessageStyle defaultSystemMessageStyle) { m_Grid = parent; m_SystemMessageStyle = defaultSystemMessageStyle; }
/// <summary> /// Adds a new error to the collection. The error will not be critical. /// </summary> /// <param name="systemMessage">The error message to be shown.</param> /// <param name="systemMessageStyle">Determines how the error should be displayed.</param> /// <param name="rowColumnId">Determines which row and column the error should be displayed in.</param> /// <returns>The index of the new error in the collection.</returns> /// <remarks>errors added at PreRender will not affect update/insert events.</remarks> public int Add(string systemMessage, SystemMessageStyle systemMessageStyle, string rowColumnId) { return(AddSystemMessage(systemMessage, false, systemMessageStyle, rowColumnId)); }
/// <summary> /// Adds a new error to the collection. The error will not be critical. /// </summary> /// <param name="systemMessage">The error message to be shown.</param> /// <param name="systemMessageStyle">Determines how the error should be displayed.</param> /// <returns>The index of the new error in the collection.</returns> /// <remarks>errors added at PreRender will not affect update/insert events.</remarks> public int Add(string systemMessage, SystemMessageStyle systemMessageStyle) { return(AddSystemMessage(systemMessage, false, systemMessageStyle, null)); }
/// <summary> /// Adds a new error to the collection. /// </summary> /// <param name="systemMessage">The error message to be shown.</param> /// <param name="critical">Critical errors are errors not caused by users. Critical errors also halt most actions after the error occurred.</param> /// <param name="systemMessageStyle">Determines how the error should be displayed.</param> /// <returns>The index of the new error in the collection.</returns> /// <remarks>errors added at PreRender will not affect update/insert events.</remarks> public int Add(string systemMessage, bool critical, SystemMessageStyle systemMessageStyle) { return(AddSystemMessage(systemMessage, critical, systemMessageStyle, null)); }
/* * /// <summary> * /// Adds a new error to the collection. * /// </summary> * /// <param name="systemMessage">The error message to be shown.</param> * /// <param name="critical">Critical errors are errors not caused by users. Critical errors also halt most actions after the error occurred.</param> * /// <returns> * /// The index of the new error in the collection. * /// </returns> * /// <remarks>errors added at PreRender will not affect update/insert events.</remarks> * public int Add(string systemMessage, bool critical) * { * return AddSystemMessage(systemMessage, critical, m_SystemMessageStyle, null); * } * * /// <summary> * /// Adds a new error to the collection. * /// </summary> * /// <param name="systemMessage">The error message to be displayed.</param> * /// <param name="critical">Critical errors are errors not caused by users. Critical errors also halt most actions after the error occurred.</param> * /// <param name="systemMessageStyle">Determines how the error should be displayed.</param> * /// <returns>The index of the new error in the collection.</returns> * public int Add(string systemMessage, bool critical, SystemMessageStyle systemMessageStyle) * { * return AddSystemMessage(systemMessage, critical, systemMessageStyle, null); * }*/ /// <summary> /// Adds a new error to the collection. /// </summary> /// <param name="systemMessage">The error message to be shown.</param> /// <param name="critical">Critical errors are errors not caused by users. Critical errors also halt most actions after the error occurred.</param> /// <param name="systemMessageStyle">Determines how the error should be displayed.</param> /// <param name="rowColumnId">Determines which row and column the error should be displayed in.</param> /// <returns>The index of the new error in the collection.</returns> public int Add(string systemMessage, bool critical, SystemMessageStyle systemMessageStyle, string rowColumnId) { return(AddSystemMessage(systemMessage, critical, systemMessageStyle, rowColumnId)); }