private void SaveCommand_Executed(object sender, ExecutedRoutedEventArgs e) { pages.editSoa page = GetCurrentPageInstance(); if (page != null) { vmTaxonomy vm = page.ViewmodelProvider(); utilities.SaveFile(vm, util.activeFilePath, utilities.fileType.xml); } }
private void SaveAsCommand_Executed(object sender, ExecutedRoutedEventArgs e) { pages.editSoa page = GetCurrentPageInstance(); if (page != null) { vmTaxonomy vm = page.ViewmodelProvider(); utilities.SaveFileAs(vm); } }
private List <string> GetAddressFields(Dictionary <string, vmTaxonomy> vmTaxonomies) { List <string> ls = new List <string>(); foreach (KeyValuePair <string, vmTaxonomy> kvp in vmTaxonomies) { vmTaxonomy vm = kvp.Value; ls.Add(vm.vmClient.streetAddress01); } return(ls); }