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

            LeftPosition = _options.LeftPosition;
            TopPosition  = _options.TopPosition;
        }
コード例 #2
0
ファイル: ProfileStateModel.cs プロジェクト: leekichang/Kybly
 public ProfileStateModel(HotkeyProfile profile, IAsyncJsonFileManager jsonSavefileManager)
 {
     Profile = profile;
     _jsonSavefileManager = jsonSavefileManager;
 }
コード例 #3
0
ファイル: OptionsViewModel.cs プロジェクト: leekichang/Kybly
 public OptionsViewModel(ApplicationModel applicationModel, IAsyncJsonFileManager jsonSavefileManager)
 {
     _options             = applicationModel.Options;
     _applicationModel    = applicationModel;
     _jsonSavefileManager = jsonSavefileManager;
 }
コード例 #4
0
ファイル: ApplicationModel.cs プロジェクト: leekichang/Kybly
 public ApplicationModel(ProfileSwitchKeyTableManager switchKeyTable, IAsyncJsonFileManager jsonSavefileManager)
 {
     _switchKeyTable      = switchKeyTable;
     _jsonSavefileManager = jsonSavefileManager;
 }
コード例 #5
0
 public ProfileSwitchKeyTableManager(IAsyncJsonFileManager jsonSavefileManager, ProfileManager profileManager)
 {
     _jsonSavefileManager = jsonSavefileManager;
     _profileManager      = profileManager;
 }
コード例 #6
0
ファイル: ProfileManager.cs プロジェクト: leekichang/Kybly
 /// <summary>
 /// Must explicitly call LoadAllProfileAsync to initialize
 /// </summary>
 /// <param name="jsonSavefileManager"></param>
 public ProfileManager(IAsyncJsonFileManager jsonSavefileManager)
 {
     _jsonSavefileManager = jsonSavefileManager;
 }