private void AddFileSpecs() { SystemNameDialogViewModel vm = new SystemNameDialogViewModel(); FileSpecs fs = new FileSpecs(); SystemNameRequest.Raise( new Notification { Title = "Enter Systems Name", Content = new SystemNameDialogView(vm) }, i => fs.Name = vm.FilePath ); fs.Path = fps.GetFilePath(); fileSpecs.Add(fs); }
/// <summary> /// Constructor for FilIO class; calculate and initialize FilePath from provided file name /// </summary> /// <param name="fileName"></param> public FileIO(string fileName) { // build file path IFilePathService service = DependencyService.Get <IFilePathService>(); FilePath = service.GetFilePath(fileName); // add serializer options to be able to use Dictionary data structure in JSON serializeOptions.Converters.Add(new DictionaryTKeyEnumTValueConverter()); }