20240301_JSEQ_upperpc/JiangsuEarthquake/JiangsuEarthquake/Models/FTP/FTPModel.cs
春风过客 266fb68387 新增功能:
1 解决文件和文件夹信息混乱的问题,以及文件夹大小无法读取的问题;
2 解决DataGrid排序和自动生成列冲突的问题;
2024-05-29 17:55:45 +08:00

72 lines
1.6 KiB
C#

using JiangsuEarthquake.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JiangsuEarthquake.Models.FTP
{
public class FTPModel : NotifyBase
{
private int index;
public int Index
{
get { return index; }
set { index = value; this.DoNotify(); }
}
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(); }
}
}
}