Ejemplo n.º 1
0
        public static RecentlyUsedList Load(ISettingsPersistor settingsPersistor)
        {
            var result = settingsPersistor.LoadCollection <string, RecentlyUsedList>("MRU");

            result.settingsPersistor = settingsPersistor;

            return(result);
        }
Ejemplo n.º 2
0
        // Constructor

        public MainWindowViewModel(IViewService viewService, IGitRepositoryFactory factory, ISettingsPersistor settingsPersistor)
        {
            Panels = new PanelsViewModel {
                this
            };
            this.viewService   = viewService;
            this.factory       = factory;
            MouseCursor        = Cursors.Arrow;
            Repositories       = new ObservableCollection <IRepository>();
            RecentRepositories = RecentlyUsedList.Load(settingsPersistor);
        }
Ejemplo n.º 3
0
 public ExitCommand(IProjectTask projectTask, ISettingsPersistor <IUserSettings> userSettingsPersistor, ISettingsPersistor <IApplicationSettings> applicationSettingsPersistor)
 {
     _projectTask                  = projectTask;
     _userSettingsPersistor        = userSettingsPersistor;
     _applicationSettingsPersistor = applicationSettingsPersistor;
 }