/// <summary> /// Shows a specified window while hiding all others. /// </summary> /// <param name="window">The window to switch to.</param> public static void Switch(uiWindow window) { try { foreach (int wid in uiWindow.ALL) { if (wid != window.ID) { (uiControl.ALL[wid] as uiWindow).Hide(); } } } finally { window.Show(); } }
private void Plugin_Update_Viewer_onShown(uiWindow c) { if (!this.first_show) { return; } this.first_show = false; foreach (Plugin plugin in Loader.plugins.Values) { bool has_update = plugin.check_for_updates(); if (has_update) { var itm = Create <Plugin_Update_Item>(list); itm.Set_Plugin_Data(plugin.data); } } }
private void PluginManager_onHidden(uiWindow c) { //tabPanel.Set_Tab(INSTRUCTION_TAB_NAME); tab_ins.Select(); }