public void RaiseAfterTaskChanged(NTask task) { if (OnAfterTaskChanged != null) { OnAfterTaskChanged(task); } }
public void RaiseTaskRemoved(NTask task) { if (OnTaskRemoved != null) { OnTaskRemoved(task); } }
public void RaiseBeforeTaskChanged(NTask task) { if (OnBeforeTaskChanged != null) { OnBeforeTaskChanged(task); } }
/// <summary> /// Adds a task to the collection /// </summary> /// <param name="task">a NTask object</param> /// <returns>the index number in the list</returns> public int Add(NTask task) { if (task == null) { return(-1); } return(this.InnerList.Add(task)); }
/// <summary> /// Adds a task item to the tasks /// </summary> /// <param name="task">a NTask item</param> public void AddTask(NTask task) { ListViewItem item = new ListViewItem(new string[] { task.Description, task.FileName, task.LineNumber, task.Status }); item.ForeColor = task.Color; item.Font = new Font(item.Font, task.Strikeout? FontStyle.Strikeout: FontStyle.Regular); item.Checked = task.IsChecked; this.Items.Add(item); this.Invalidate(); }