using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace sikFtpClient.Model { public abstract class DiscElementModel { public string Path { get; set; } public string Name { get; set; } public DiscElementModel(string path) { this.Path = path; this.Name = path.Substring(path.LastIndexOf('\\') + 1); } } }