MenuData IViewModel.OnMenuOpening() { var menuData = new MenuData() { Items = new List <MenuData.Item>() }; OnMenu?.Invoke(this, menuData); return(menuData); }
public StateInspectorPresenterLazyProxy(IFactory factory) { this.factory = factory; factory.StateInspectorCreated += (cs, ce) => { GetOrCreate().OnMenu += (s, e) => OnMenu?.Invoke(s, e); GetOrCreate().OnNodeCreated += (s, e) => OnNodeCreated?.Invoke(s, e); }; }