/// <summary> /// sets the detail Page on base of selected item and page list /// </summary> /// <param name="selectedItem"></param> public virtual void ChangeDetailPage(NavigationSideBarItem selectedItem) { if (_pages.ContainsKey(selectedItem.Title)) { Detail = _pages[selectedItem.Title]; } IsPresented = false; }
/// <summary> /// constructor of the SettingsModel /// inits the name and the sidbaritem /// </summary> public ReminderPluginSettingsModel() { Name = PluginNames.ReminderPluginName; SideBarItem = new NavigationSideBarItem() { Title = Name, Icon = new Image { Aspect = Aspect.AspectFit, Source = ImageSource.FromFile("menu_reminder.png") } }; }
/// <summary> /// constructor of the SettingsModel /// inits the name and the sidbaritem /// </summary> public OverviewPluginSettingsModel() { // Name = PluginNames.OverviewPluginName; SideBarItem = new NavigationSideBarItem() { Title = Name, Icon = new Image { Aspect = Aspect.AspectFit, Source = ImageSource.FromFile("msm.jpg") } }; }
public MainPageSettingsModel() { instance = this; Name = PluginNames.MainPluginName; SideBarItem = new NavigationSideBarItem() { Title = PluginNames.MainPluginName, Icon = new Image { Aspect = Aspect.AspectFit, Source = ImageSource.FromFile("msm.jpg") } }; }
/// <summary> /// constructor of the SettingsModel /// inits the name and the sidbaritem /// </summary> public MonitoringPluginSettingsModel() { Name = PluginNames.MonitoringPluginName; SideBarItem = new NavigationSideBarItem() { Title = Name, Icon = new Image { Aspect = Aspect.AspectFit, Source = ImageSource.FromFile("monitoring.png") } }; BloodSugarDataPoints = new List <BloodSugarDataPoint>(); MealDataPoints = new List <MealDataPoint>(); MedicineDataPoints = new List <MedicineDataPoint>(); }