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(); }
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; }
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(); }
public void PushBlade(IBladeRenderer renderer, string title = "") { Push(renderer, title); }
public void PushBlade(IBladeRenderer renderer, string title = null) { Manager.PopTo(this.Index, false); Manager.Push(renderer, title); }