示例#1
0
 public void SetErrors(Error[] errors)
 {
   this.ltvErrors.BeginUpdate();
   this.ltvErrors.Items.Clear();
   foreach (Error error in errors)
     this.ltvErrors.Items.Add((ListViewItem) new ErrorViewItem(error));
   this.ltvErrors.EndUpdate();
 }
示例#2
0
 public ErrorViewItem(Error error)
   : base(new string[4])
 {
   this.Error = error;
   this.SubItems[1].Text = error.Line.ToString();
   this.SubItems[2].Text = error.Column.ToString();
   this.SubItems[3].Text = error.Description;
   this.ImageIndex = error.IsWarning ? 1 : 0;
 }