using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace FTP.Models { public class FTPModel : NotifyBase { private string filename; public string FileName { get { return filename; } set { filename = value; this.DoNotify(); } } private DateTime creatime; public DateTime CreateTime { get { return creatime; } set { creatime = value; this.DoNotify(); } } private string filesize; public string FileSize { get { return filesize; } set { filesize = value; this.DoNotify(); } } private string filepath; public string FilePath { get { return filepath; } set { filepath = value; this.DoNotify(); } } private bool isDirectory; /// /// 是否为目录 /// public bool IsDirectory { get { return isDirectory; } set { isDirectory = value; this.DoNotify(); } } private string filetype; public string FileType { get { return IsDirectory == true ? "文件夹" : ""; } set { filetype = value; this.DoNotify(); } } } public class FTPLIST : NotifyBase { private List ftplist; /// /// FTP文件目录 /// public List FTPList { get { return ftplist; } set { ftplist = value; this.DoNotify(); } } private List locallist; /// /// 本地文件目录 /// public List LocalList { get { return locallist; } set { locallist = value; this.DoNotify(); } } private string datagrid1path; /// /// 实时路径 /// public string datagrid1Path { get { return datagrid1path; } set { datagrid1path = value; this.DoNotify(); } } private string datagrid2path; /// /// 本地文件保存路径 /// public string datagrid2Path { get { return datagrid2path; } set { datagrid2path = value; this.DoNotify(); } } } }