Hi,
I'm new to winforms (using C#) and would appreciated a headsup re the winforms control/approach to use to quickly provide visual editing of my List collection. So the in-memory collection I have is below. So my requirements were basically to:
- provide a means on my winform form, to allow add/view/edit of the List of ConfigFileDTO information, BUT
Only the "PATH" field of the ConfigFileDTO needs to be made a available to the user, therefore the use could: i) add a new PATH to the list, ii) delete PATHs, hence deleting the ConfigFileDTO from the list, and iii) edit the list, allowing one of the PATH's in the list to be changed.
private static List<ConfigFileDTO> files; public class ConfigFileDTO { private string filename; private string content_type; private int file_size; private DateTime updated_at; private string path;
}public ConfigFileDTO() { } public int FileSize { get { return this.file_size; } set { this.file_size = value; } } public string ContentType { get { return this.content_type; } set { this.content_type = value; } } public string Filename { get { return this.filename; } set { this.filename = value; } } public DateTime UpdatedAt { get { return this.updated_at; } set { this.updated_at = value; } } public string Path { get { return this.path; } set { this.path = value; } }
Thanks