public SysCfg() { audioFolderAddr = new FolderAddress("Audio"); videoFolderAddr = new FolderAddress("Video"); recordingFolderAddr = new FolderAddress("Recording"); reportFolderAddr = new FolderAddress("Report"); htkFolderAddr = new FolderAddress("HTK"); fomantFolderAddr = new FolderAddress("Fomant"); }
protected SysCfg(SerializationInfo info, StreamingContext context) { if (info == null) { throw new System.ArgumentNullException("info"); } this.audioFolderAddr = info.GetValue("Audio Recording Folder Address", typeof(FolderAddress)) as FolderAddress; this.videoFolderAddr = info.GetValue("Video Recording Folder Address", typeof(FolderAddress)) as FolderAddress; this.recordingFolderAddr = info.GetValue("Personal Recording Folder Address", typeof(FolderAddress)) as FolderAddress; this.reportFolderAddr = info.GetValue("Personal Report Folder Address", typeof(FolderAddress)) as FolderAddress; this.htkFolderAddr = info.GetValue("HTK Folder Address", typeof(FolderAddress)) as FolderAddress; this.fomantFolderAddr = info.GetValue("Fomant Slot Folder Address", typeof(FolderAddress)) as FolderAddress; }