/// <summary> /// Ctor /// </summary> public TerminalMenuPage() { InitializeComponent(); birthdayEventService = DependencyService.Get <IBirthdayEventService>(); todayEvents.ItemsSource = birthdayEventService.GetTodayEvents(); nextEvents.ItemsSource = birthdayEventService.GetNexEvents(); messageService = DependencyService.Get <IMessageService>(); }
/// <summary> /// Ctor /// </summary> public SettingsMenuPage() { InitializeComponent(); securityService = DependencyService.Get <ISecurityService>(); localStorageService = DependencyService.Get <ILocalStorageService>(); birthdayEventService = DependencyService.Get <IBirthdayEventService>(); settings = localStorageService.Get <GlobalSettings>(typeof(GlobalSettings).Name); if (settings == null) { settings = new GlobalSettings() { Host = "localhost", Login = "******" }; } CheckConnection(); }