/// <summary> /// Adds the specified error. /// </summary> /// <param name="error">The error.</param> public void Add(ScriptLineError error) { this.Invoke(new Callback(delegate() { if (gridControl1.DataSource == null) { gridControl1.DataSource = ErrorSource; } ((List<ScriptLineError>)gridControl1.DataSource).Add(error); gridView1.RefreshData(); })); }
/// <summary> /// Initializes a new instance of the <see cref="LineErrorEventArgs"/> class. /// </summary> /// <param name="error">The error.</param> public LineErrorEventArgs(ScriptLineError error) { this.Error = error; }