コード例 #1
0
 public ConnectionPresenter(StorageService service, AppSettings settings, ModalViewManager modalViewManager)
 {
     _service = service;
     _settings = settings;
     ConnectCommand = new DelegateCommand<object>(
         (o) =>
         {
             _settings.Save();
             _service.Connect();
             if (_service.IsConnect)
             {
                 modalViewManager.Hide();
             }
             HasProblems = !_service.IsConnect;
         });
 }
コード例 #2
0
ファイル: Module.cs プロジェクト: Minatron/Minatron
 public CameraNavigatorModule(IRegionManager regionManager, IUnityContainer container, AppSettings settings)
 {
     _container = container;
        _settings = settings;
        RegionManager = regionManager;
 }