protected override async void OnResume() { this.sessionRepository = Container.Resolve<IApplicationProperties>(); await this.sessionRepository.LoadAsync(); var vm = this.sessionRepository.GetValue<ViewModelTabbedMainPage>(); if (vm != null) { this.MainPage.BindingContext = vm; } }
public App() { InitializeComponent(); //MainPage = new ColonyClientPage(); MainPage = new TabbedMainPage(); Container.RegisterType<IApplicationProperties, ApplicationProperties>(new ContainerControlledLifetimeManager()); this.sessionRepository = Container.Resolve<IApplicationProperties>(); this.sessionRepository.initilize(); }
public HistoricalExcelService(MainRegionViewModel main, IEventContext eventContext, IObjectServiceOperations objectServiceOperations, IInteractionService interactionService, IHistoricalTimeUtility historicalTimeUtility, IValueFormatter valueFormatter, IApplicationProperties appliationProperties) { _historicalTimeUtility = historicalTimeUtility; _valueFormatter = valueFormatter; _objectServiceOperations = objectServiceOperations; _interactionService = interactionService; _appliationProperties = appliationProperties; }
public MainRegionViewModel(IEventAggregator eventAggregator, IResourceDictionaryProvider resourceDictionaryProvider, IApplicationProperties appliationProperties, IEventContext eventContext, IObjectServiceOperations objectServiceOperations, IInteractionService interactionService, IHistoricalTimeUtility historicalTimeUtility, IPropertyNameService columnNameService, IHistoricalColumnService historicalColumnService, ISerializationService serializationService, IHelpExtension helpExtension, IValueFormatter valueFormatter, IHdaFileExportService hdaFileExportService, IDocumentationService documentationService) : base(eventContext, objectServiceOperations, interactionService, historicalTimeUtility, columnNameService, historicalColumnService, serializationService, helpExtension, valueFormatter, eventAggregator, hdaFileExportService, documentationService) { _eventAggregator = eventAggregator; _eventContext = eventContext; _historicalTimeUtility = historicalTimeUtility; if (HistoricalExcelService.Current == null) HistoricalExcelService.Current = new HistoricalExcelService(this, eventContext, objectServiceOperations, interactionService, historicalTimeUtility, valueFormatter, appliationProperties); ItemsHistoricalTimePeriodViewModel.Items.CollectionChanged += Items_CollectionChanged; ListViewModel.ExportCommand = new DelegateCommand(ExportPropertyList); ListViewModel.ExportCommandText = interactionService.TranslatingService.GetSystemText("Import"); EventListViewModel.ExportCommand = new DelegateCommand(ExportEventList); EventListViewModel.ExportCommandText = interactionService.TranslatingService.GetSystemText("Import"); SubscribeEvents(); }
public LeaseRepository(IApplicationProperties applicationProperties) : base(applicationProperties) { connectionString = applicationProperties.ConnectionString; }
public CommonListRepository(IApplicationProperties applicationProperties) : base(applicationProperties) { connectionString = applicationProperties.ConnectionString; }