public void AddItem(int id, string title, int level = 0, Type targettype = null, double? fontsize = null, int? rowheight = null, bool isspecial = false, Color? textcolor = null) { CasecadeItems item = new CasecadeItems(); item.ID = id; item.Title = title; item.Level = level; item.TargetType = targettype; item.IsSpecial = isspecial; item.TextColor = textcolor ?? FixParams.FontColor; item.FontSize = fontsize ?? FixParams.StandardSize; item.RowHeight = rowheight * (int)Math.Round(FixParams.AspectRate) ?? 40 * (int)Math.Round(FixParams.AspectRate); CascadeListData.Add(item); }
public void AddItem(int id, string title, int level = 0, Type targettype = null, double?fontsize = null, int?rowheight = null, bool isspecial = false, Color?textcolor = null) { CasecadeItems item = new CasecadeItems(); item.ID = id; item.Title = title; item.Level = level; item.TargetType = targettype; item.IsSpecial = isspecial; item.TextColor = textcolor ?? FixParams.FontColor; item.FontSize = fontsize ?? FixParams.StandardSize; item.RowHeight = rowheight * (int)Math.Round(FixParams.AspectRate) ?? 40 * (int)Math.Round(FixParams.AspectRate); CascadeListData.Add(item); }
public void NavigateTo(CasecadeItems menu) { try { if (menu == null) { return; } if (menu.TargetType == null) { menu.TargetType = typeof(UnderConstractionPage); } Page displayPage = (Page)Activator.CreateInstance(menu.TargetType); App.HomePage.Detail.Navigation.PushAsync(new NavigationPage(displayPage)); } catch (Exception ex) { DisplayAlert("", ex.Message, ""); } }
public void NavigateTo(CasecadeItems menu) { try { if (menu == null) return; if (menu.TargetType == null) menu.TargetType = typeof(UnderConstractionPage); Page displayPage = (Page)Activator.CreateInstance(menu.TargetType); App.HomePage.Detail.Navigation.PushAsync(new NavigationPage(displayPage)); } catch (Exception ex) { DisplayAlert("", ex.Message, ""); } }