private void InitializeProperties() { IValidateIfInterfaceIsImplemented validator = new ViewModel.Validators.InterfaceImplementValidator(); Navigator = new ViewNavigator(validator, new PatientsPage()); // TODO: Dodać pozostałe Page TypeProvider = new ViewModel.DataProvider.NavigationPageTypeProvider(validator, new List <Type> { typeof(PatientsPage), typeof(DoctorsPage), typeof(AdmissionsPage), typeof(DiagnosesPage), typeof(RoomsPage), typeof(SurgeriesPage), typeof(NewAdmissionPage), }); Navigator.SetParameter(new Action(() => Navigator.ChangeFrame(typeof(NewAdmissionPage), mainFrame))); Type pageType = TypeProvider.GetTypeFromString("AdmissionsPage"); Navigator.ChangeFrame(pageType, mainFrame); Navigator.RemoveParameters(); }