//初始化 private void Init() { MainVM = new MainViewModel(); //personInfo PIVM = new PersonInfoVM(); PIView = new PersonInfoView() { DataContext = PIVM }; //人脸库 FRVM = new FaceRecordVM(); FRView = new FaceRecordView() { DataContext = FRVM }; //识别结果 FIVM = new FaceIdentificationVM(); FIView = new FaceIdentificationView() { DataContext = FIVM }; FIVM.PersonInfoUC = new PersonInfoView(); PIVM.FaceCharacteristicsAction += UploadFaceRecord; UtilTool.CreateDirectory_FullControl(PersonInfoPath); //创建用户信息文件夹 }
public object Clone() { PersonInfoVM pivm = new PersonInfoVM() { PersonSchoolLabel = this.PersonSchoolLabel, PersonClassLabel = this.PersonClassLabel, PersonNameLabel = this.PersonNameLabel, PersonGenderLabel = this.PersonGenderLabel, PersonAgeLabel = this.PersonAgeLabel, PersonNumberLabel = this.PersonNumberLabel, naturalSourceImage = this.NaturalSourceImage, infraredSourceImage = this.InfraredSourceImage, naturalImageID = this.NaturalImageID, faceCharacteristics = this.FaceCharacteristics, personSchool = this.PersonSchool, personClass = this.PersonClass, personName = this.PersonName, personGender = this.PersonGender, personAge = this.PersonAge, personNumber = this.PersonNumber, }; return(pivm); }