Example #1
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();
            menu      = GetMenu();
            container = GetContainer();
            this.MakeChildsLoaded(this.menu, this.container);

            OnChildLoaded();
        }
Example #2
0
        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;
 }