public TempleteImportPopViewModel() { //初始化是否包含子文件夹 AllDocu = new List <string> { "是", "否" }; SelectedAllDocu = 0; //初始化模版类型 Type = thirft.QueryDefFaceObjType(); SelectedType = 0; //初始化模版性别 SelectedSex = 0; Sex = new List <string> { "全部", "男", "女" }; //初始化进度条当前进度 CurrentLength = 0; //初始化进度条最大进度 MaxLength = 100; //初始化错误照片数量 errorCount = 0; //初始化错误信息 errorInfo = ""; //初始化错误照片保存地址 string dir = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); const string strDirDest = "\\ImageError"; errorAddress = dir + strDirDest; //初始化导入进度描述 ImportInfo = "点击导入模板文件按钮,导入模板"; }
public ChannelCompareViewModel() { //抓拍ID Id = ""; //初始化每页行数 SelectedPageRow = 0; PageRow = new List <string>() { "5", "10", "15", "30", "60" }; //初始化抓拍照片 Image = new BitmapImage(new Uri("pack://application:,,,/Images/照片选取后前景.png")); //初始化模版类型 Type = thirft.QueryDefFaceObjType(); //初始化模版性别 Sex = new List <string> { "全部", "男", "女" }; //初始化模版数量 TemplateCount = new List <string>(); TemplateCount.Add("2"); TemplateCount.Add("3"); TemplateCount.Add("5"); TemplateCount.Add("10"); TemplateCount.Add("15"); TemplateCount.Add("20"); TemplateCount.Add("25"); MyFaceObjList = new List <MyFaceObj>(); CapInfoList = new List <CapInfo>(); }
public TempleteInfoPopViewModel() { ThriftServiceNameSpace.ThriftService thirft = new ThriftServiceNameSpace.ThriftService(); _FaceObj = new FaceObj(); //初始化模版类型 Type = thirft.QueryDefFaceObjType(); SelectedType = 0; //初始化模版性别 Sex = new List <string>() { "未知", "男", "女" }; }
public TemplateManagerViewModel() { this.initCmd(); //初始化条件的初值 templateManagerValue = new TemplateManagerValue(); //初始化表格数据 ListMyFaceObj = new List <MyFaceObj>(); //初始化模版姓名 Name = ""; //初始化模版类型 Type = thirft.QueryDefFaceObjType(); SelectedType = 0; //初始化模版性别 SelectedSex = 0; Sex = new List <string> { "全部", "男", "女" }; //初始化年龄的下限 LittleAge = ""; //初始化年龄的上限 OldAge = ""; //初始化开始日期 StartDay = ""; //初始化结束日期 EndDay = ""; //初始化开始时辰和结束时辰和选择时间 StartHour = new List <string>(); EndHour = new List <string>(); for (int i = 0; i <= 23; i++) { StartHour.Add(i + ":00"); EndHour.Add(i + 1 + ":00"); } SelectedEndHour = 23; SelectedStartHour = 0; //初始化loading图片 Hidden Visible LoadingVisiblity = "Hidden"; ScanVisiblity = "Hidden"; TiaojianQueryVisiblity = "Visible"; PicQueryVisiblity = "Hidden"; //初始化每页行数 SelectedPageRow = 2; PageRow = new List <string>() { "5", "10", "15", "30", "60" }; //初始化当前页 CurrPage = 0; //初始化最大页 MaxPage = 0; //初始化图片相似度 TemplateScroe = new List <string>(); TemplateScroe.Add("10"); TemplateScroe.Add("15"); TemplateScroe.Add("20"); TemplateScroe.Add("25"); TemplateScroe.Add("30"); TemplateScroe.Add("35"); TemplateScroe.Add("40"); TemplateScroe.Add("45"); TemplateScroe.Add("50"); TemplateScroe.Add("55"); TemplateScroe.Add("60"); TemplateScroe.Add("65"); TemplateScroe.Add("70"); TemplateScroe.Add("75"); TemplateScroe.Add("80"); TemplateScroe.Add("85"); TemplateScroe.Add("90"); TemplateScroe.Add("95"); TemplateScroe.Add("100"); //初始化图片查询最大返回数量 MaxPictureCount = new List <string>(); MaxPictureCount.Add("5"); MaxPictureCount.Add("10"); MaxPictureCount.Add("15"); MaxPictureCount.Add("35"); MaxPictureCount.Add("75"); MaxPictureCount.Add("105"); MaxPictureCount.Add("135"); MaxPictureCount.Add("165"); MaxPictureCount.Add("200"); MaxPictureCount.Add("250"); MaxPictureCount.Add("300"); MaxPictureCount.Add("350"); MaxPictureCount.Add("400"); MaxPictureCount.Add("450"); MaxPictureCount.Add("500"); }