public NoteManager(INoteLoader noteLoader, INoteReader noteReader)
        {
            _noteReader = noteReader;
            _noteLoader = noteLoader;

            MyNotes = new ObservableCollection <MyNote>(_noteLoader.Load());
        }
Exemple #2
0
        private NoteManager()
        {
            NoteLoader = ServiceLoaderFactory <INoteLoader> .CreateService();

            NoteReader = ServiceLoaderFactory <INoteReader> .CreateService();

            MyNotes = new ObservableCollection <MyNote>(NoteLoader.Load());
        }