Exemple #1
0
        public InfoWindowViewModel(IEventAggregator eventAggregator,
                                   ApplicationModel applicationModel, IAsyncJsonFileManager jsonFileManager)
        {
            eventAggregator.SubscribeOnUIThread(this);
            _options         = applicationModel.Options;
            _jsonFileManager = jsonFileManager;

            LeftPosition = _options.LeftPosition;
            TopPosition  = _options.TopPosition;
        }
 public ProfileStateModel(HotkeyProfile profile, IAsyncJsonFileManager jsonSavefileManager)
 {
     Profile = profile;
     _jsonSavefileManager = jsonSavefileManager;
 }
Exemple #3
0
 public OptionsViewModel(ApplicationModel applicationModel, IAsyncJsonFileManager jsonSavefileManager)
 {
     _options             = applicationModel.Options;
     _applicationModel    = applicationModel;
     _jsonSavefileManager = jsonSavefileManager;
 }
Exemple #4
0
 public ApplicationModel(ProfileSwitchKeyTableManager switchKeyTable, IAsyncJsonFileManager jsonSavefileManager)
 {
     _switchKeyTable      = switchKeyTable;
     _jsonSavefileManager = jsonSavefileManager;
 }
 public ProfileSwitchKeyTableManager(IAsyncJsonFileManager jsonSavefileManager, ProfileManager profileManager)
 {
     _jsonSavefileManager = jsonSavefileManager;
     _profileManager      = profileManager;
 }
Exemple #6
0
 /// <summary>
 /// Must explicitly call LoadAllProfileAsync to initialize
 /// </summary>
 /// <param name="jsonSavefileManager"></param>
 public ProfileManager(IAsyncJsonFileManager jsonSavefileManager)
 {
     _jsonSavefileManager = jsonSavefileManager;
 }