public AnnotateWithNamesForm(AinFile ainFile)
            : this()
        {
            LoadEnumerationTypes(ainFile);

            this.mySettings = AnnotationSettings.GetAnnotationSettings(ainFile);
            ReadSettings();
        }
Ejemplo n.º 2
0
 private void AddAnnotations(TextImportExport exportImport)
 {
     if (this.annotateWithNamesCheckBox.Checked)
     {
         var annotationSettings = AnnotationSettings.GetAnnotationSettings(ainFile);
         exportImport.SetAnnotations(annotationSettings);
     }
     exportImport.CombineMessages = !this.useOldFormatCheckBox.Checked;
 }
        public static AnnotationSettings GetAnnotationSettings(AinFile ainFile)
        {
            var    annotationSettings = new AnnotationSettings();
            string baseName           = Path.GetFileNameWithoutExtension(ainFile.OriginalFilename);
            string pathName           = "AnnotationSettings\\" + baseName;

            if (RegistryUtility.PathExists(pathName))
            {
                RegistryUtility.GetObject(pathName, annotationSettings);
            }
            else
            {
            }
            return(annotationSettings);
        }