Пример #1
0
		public void SetActivePanel(pnlTreeNode Panel) {
			if (mLastPanel != null) {
				if (mLastPanel == Panel)
					return;
				panelControls.Controls.Clear();
			}

			panelControls.Controls.Add(Panel);
			mLastPanel = Panel;
		}
Пример #2
0
        public void SetActivePanel(pnlTreeNode Panel)
        {
            if (mLastPanel != null)
            {
                if (mLastPanel == Panel)
                {
                    return;
                }
                panelControls.Controls.Clear();
            }

            panelControls.Controls.Add(Panel);
            mLastPanel = Panel;
        }