public override void OnApplyTemplate() { base.OnApplyTemplate(); menu = GetMenu(); container = GetContainer(); this.MakeChildsLoaded(this.menu, this.container); OnChildLoaded(); }
public void Init(ViewOwner owner, ViewContainer container) { _owner = owner; _container = container; _container.ViewChanged += OnViewChanged; _container.Maxed += OnWorkMaxed; _container.Reduced += OnWorkReduced; _container.ViewDisabled += OnViewDisabled; _container.ViewEnabled += OnViewEnabled; BuildMenuItems(); }
public void Init(ViewContainer container) { _container = container; _container.ViewChanged += OnViewChanged; }