/// <summary> /// Выбрать первый таблет /// </summary> public void SwitchFirst() { if (components.Count != 0) { currentVisible = components[0]; currentVisible.Show(); currentVisible.Visible = true; currentVisible.BringToFront(); } }
/// <summary> /// Переключиться на другое представление /// </summary> /// <param name="component"></param> public void SwitchTo(IUisComponent component) { if (component != currentVisible) { component.Show(); component.BringToFront(); if (currentVisible != null) { currentVisible.Hide(); currentVisible.Visible = false; } currentVisible = component; } }