public MainPageViewModel(INavigationService navigationService, ISQLite dbservices, IEventServices eventServices, IPdfServices pdfServices) : base(navigationService) { Title = "Main Menu"; NavigateToRunnerPageCommand = new DelegateCommand(NavigateToRunnerPage); DeleteAllCommand = new DelegateCommand(DeleteAllMethod); NavigateToEventsPageCommand = new DelegateCommand(NavigateToEventsPage); this.navigationService = navigationService; this.dbservices = dbservices; Connection = dbservices.GetConnection(); dbservices.CreateTables(Connection); this.EventServices = eventServices; GetNotRanEvents(); }