private void AddFileNode(ExpectedDetailResult kvp, TreeNode parent) { SafelyAddIcon(kvp.ActualFileLocation); TreeNode child = new TreeNode { Text = Path.GetFileName(kvp.DisplayName), ImageKey = kvp.ActualFileLocation, ToolTipText = kvp.ActualFileLocation }; AddExpectedNode(parent, child); }
public int CompareTo(object obj) { ExpectedDetailResult other = obj as ExpectedDetailResult; return((other != null)?DisplayName.CompareTo(other.DisplayName):0); }