示例#1
0
        private void LoadPageControl()
        {
            Controls.Clear();
            Text = Current.Title;
            Control newControl = Current.GetControl();

            Controls.Add(newControl);
            if (newControl.GetType() == typeof(ChartPanel))
            {
                this.Width = Current.TabControl.SelectedTab.Width;
                this.Refresh();
                (newControl as ChartPanel).RefreshAllSeries();
            }
        }