コード例 #1
0
        public void Push(IBladeRenderer renderer, string title = "")
        {
            var blade = new Blade(this, renderer, _stack.Count(), _panels[_stack.Count()], title, _containers[_stack.Count()]);

            _stack.Push(blade);
            blade.Refresh();
        }
コード例 #2
0
 public Blade(BladeManager manager, IBladeRenderer renderer, int index, DumpContainer panel, string title, Div container)
 {
     Manager   = manager;
     Index     = index;
     Renderer  = renderer;
     Panel     = panel;
     Title     = title;
     Container = container;
 }
コード例 #3
0
        public void OpenSideBlade(IBladeRenderer renderer, Action <object> onClose = null, string title = "")
        {
            if (_sideBlade != null)
            {
                _sideBlade?.Clear();
                _sideBlade = null;
                _overlay.Hide();
            }

            _overlay.Show();
            _sideBladeOnClose = onClose;
            _divSideBlade.SetVisibility(true);
            _sideBlade = new Blade(this, renderer, -1, _sideBladeContainer, title, null);
            _sideBlade.Refresh();
        }
コード例 #4
0
 public void PushBlade(IBladeRenderer renderer, string title = "")
 {
     Push(renderer, title);
 }
コード例 #5
0
 public void PushBlade(IBladeRenderer renderer, string title = null)
 {
     Manager.PopTo(this.Index, false);
     Manager.Push(renderer, title);
 }