コード例 #1
0
        /// <summary>
        /// Выбрать первый таблет
        /// </summary>
        public void SwitchFirst()
        {
            if (components.Count != 0)
            {
                currentVisible = components[0];

                currentVisible.Show();
                currentVisible.Visible = true;

                currentVisible.BringToFront();
            }
        }
コード例 #2
0
        /// <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;
            }
        }