/// <summary> /// 构造 /// </summary> /// <param name="_uc"></param> public frmUCcontainer(ucBase _uc, frmBase _frmOwner, List <EntitySysModule> _lstFuncItems) { if (!DesignMode && _frmOwner != null) { _frmOwner.StartRedraw(); } InitializeComponent(); this.AutoScaleMode = AutoScaleMode.None; if (!DesignMode) { this.ucCustom = _uc; this.xtraScrollableControl.Controls.Add(this.ucCustom); this.ucCustom.Location = new System.Drawing.Point(0, 0); this.Text = this.ucCustom.Caption; int width = this.ucCustom.Width + 33; int height = this.ucCustom.Height + 30; if (width > Screen.PrimaryScreen.WorkingArea.Width) { width = Screen.PrimaryScreen.WorkingArea.Width; } if (height > Screen.PrimaryScreen.WorkingArea.Height) { height = Screen.PrimaryScreen.WorkingArea.Height; } this.Size = new System.Drawing.Size(width, height); this.frmParent = _frmOwner; this.lstFuncItems = _lstFuncItems; // 资源 this.rm = new System.Resources.ResourceManager(typeof(Common.Controls.Properties.Resources)); } }
/// <summary> /// 设置UC /// </summary> /// <param name="child"></param> public virtual void SetUC(ucBase child) { }