void AddToMenu(IDemo demo) { Control control = demo.GetControl(); FlowMenu.AddMenuItem(new MetroMenuItem(control, MetroMenuTransition.EaseIn, demo.DemoName)); demo.ChangeDemo += (o, e) => { FlowMenu.ShowMenu(e.DemoName); }; RegisterForDragFeedback(control); }
void AddToMenu(IDemo demo) { Control control = demo.GetControl(); FlowMenu.AddMenuItem(new MetroMenuItem(control, MetroMenuTransition.EaseIn, demo.DemoName)); demo.ChangeDemo += (o, e) => { FlowMenu.ShowMenu(e.DemoName); }; RegisterForDragFeedback(control); }