Example #1
0
        MenuData IViewModel.OnMenuOpening()
        {
            var menuData = new MenuData()
            {
                Items = new List <MenuData.Item>()
            };

            OnMenu?.Invoke(this, menuData);
            return(menuData);
        }
Example #2
0
        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);
            };
        }