107 lines
2.6 KiB
C#
107 lines
2.6 KiB
C#
|
|
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;
|
|||
|
|
/// <summary>
|
|||
|
|
/// 是否为目录
|
|||
|
|
/// </summary>
|
|||
|
|
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<FTPModel> ftplist;
|
|||
|
|
/// <summary>
|
|||
|
|
/// FTP文件目录
|
|||
|
|
/// </summary>
|
|||
|
|
public List<FTPModel> FTPList
|
|||
|
|
{
|
|||
|
|
get { return ftplist; }
|
|||
|
|
set { ftplist = value; this.DoNotify(); }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private List<FTPModel> locallist;
|
|||
|
|
/// <summary>
|
|||
|
|
/// 本地文件目录
|
|||
|
|
/// </summary>
|
|||
|
|
public List<FTPModel> LocalList
|
|||
|
|
{
|
|||
|
|
get { return locallist; }
|
|||
|
|
set { locallist = value; this.DoNotify(); }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
private string datagrid1path;
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实时路径
|
|||
|
|
/// </summary>
|
|||
|
|
public string datagrid1Path
|
|||
|
|
{
|
|||
|
|
get { return datagrid1path; }
|
|||
|
|
set { datagrid1path = value; this.DoNotify(); }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private string datagrid2path;
|
|||
|
|
/// <summary>
|
|||
|
|
/// 本地文件保存路径
|
|||
|
|
/// </summary>
|
|||
|
|
public string datagrid2Path
|
|||
|
|
{
|
|||
|
|
get { return datagrid2path; }
|
|||
|
|
set { datagrid2path = value; this.DoNotify(); }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|