示例#1
0
 /// <summary>
 /// Used to compare the two tasklist items
 /// </summary>
 /// <param name="item">TaskListItem Object</param>
 /// <returns>True if the items are completely equals (all properties)</returns>
 public bool Equals(TaskListItemViewModel item)
 {
     return(this.FullFilename.Equals(item.FullFilename) &&
            this.Token.Equals(item.Token) &&
            this.Description.Equals(item.Description) &&
            this.Line == item.Line);
 }
示例#2
0
 /// <summary>
 /// Used to compare the two tasklist items
 /// </summary>
 /// <param name="item">TaskListItem Object</param>
 /// <returns>True if the items match (full filename and line number)</returns>
 public bool Matches(TaskListItemViewModel item)
 {
     // We're only comparing the full filename and the line number
     // This will give us enough information to know it's the same task object
     return(this.FullFilename.Equals(item.FullFilename) && this.Line == item.Line);
 }