Example #1
0
 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);
     }
 }
Example #2
0
 private void SaveAsCommand_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     pages.editSoa page = GetCurrentPageInstance();
     if (page != null)
     {
         vmTaxonomy vm = page.ViewmodelProvider();
         utilities.SaveFileAs(vm);
     }
 }
Example #3
0
        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);
        }