private void switchTo(RibbonViews view) { disableAllPanels(); // Activate the panel RibbonPanels[(int)view].SetActive(true); }