public InformationViewModel()
 {
     SaveRecord = new Command(OnSaveRecord);
     CancelRecord = new Command(OnCancelRecord);
     AddNote = new Command(OnAddNote);
     RemoveNote = new Command(OnRemoveNote);
     AddPhoneNumber = new Command(OnAddPhoneNumber);
     RemovePhoneNumber = new Command(OnRemovePhoneNumber);
     Logger.InitLogger();
 }
        public RepositoryManagerViewModel()
        {
            Logger.InitLogger();

            SaveChange = new Command(OnSaveChange);
            RemoveRepository = new Command(OnRemoveRepository);
            CancelChange = new Command(OnCancelChange);
            Serialise = new Command(OnSerialise);
            AddRepository = new Command(OnAddRepository);
            OpenFilePathDialog = new Command(OnOpenFilePathDialog);
            OpenDTDPathDialog = new Command(OnOpenDTDPathDialog);
            OpenXSDPathDialog = new Command(OnOpenXSDPathDialog);

            XSD = true;

            System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
            ConfigurationSectionCollection sectionCollection = config.GetSectionGroup("AdressBookWPFSectionGroup").Sections;
            Repositories listRepository = (Repositories)sectionCollection.Get("RepositorySection");
            foreach (RepositoryElement item in listRepository.RepositoriesItems)
            {
                _xmlRepositories.Add(new XmlRepository(item.Path, item.XSD, item.DTD) { Name = item.Name });
            }
        }
 public NoteViewModel(Note note)
 {
     _note = new Note(note.NoteText, new ObservableCollection<NoteTag>(note.NoteTags));
     AddNoteTag = new Command(OnAddNoteTag);
     RemoveNoteTag = new Command(OnRemoveNoteTag);
 }