private Task onPaneSwitch(MouseButtonEventArgs args) { _currentTab.Hide(); _currentTab = (_currentTab == Tree) ? (IDebugTab)_displayList : Tree; _panesButton.Text = _currentTab == Tree ? "Display List" : "Scene Tree"; _currentTab.Resize(); return(_currentTab.Show()); }
void RegisterTab(IDebugTab tab, bool active) { Tabs.Add(tab); tab.Init(tabsContainer, framesContainer); if (active) { tab.Show(); } tab.OnTabClick += ClickOnTab; }
public Task Show() { _panel.Visible = true; resizeGameWindow(); return(_currentTab.Show()); }
public Task Show() { _panel.Visible = true; return(_currentTab.Show()); }