void OnOpen(object sender, Mi e) { var row = _fv.Data.To <Menu>(); OmMenu menu = new OmMenu( ID: row.ID, Name: row.Name, Icon: row.Icon, ViewName: row.ViewName, Params: row.Params); MenuKit.OpenMenu(menu); }
void OnItemClick(object sender, ItemClickArgs e) { Kit.RunAsync(() => { OmMenu menu = (OmMenu)e.Data; if (menu.IsGroup) { _host.NaviTo(new GroupMenu(menu)); } else { MenuKit.OpenMenu(menu); } }); }