Beispiel #1
0
        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);
        }
Beispiel #2
0
 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);
         }
     });
 }