/// <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)); } }
public frmSignaturePwd(EntityCodeOperator _EmpVO, frmBase _frmOwner) { if (!DesignMode && _frmOwner != null) { _frmOwner.StartRedraw(); } InitializeComponent(); if (!DesignMode) { this.EmpVO = _EmpVO; } }
/// <summary> /// 设置UI /// </summary> /// <param name="child"></param> public virtual void SetUI(frmBase child) { ParentViewer = child; }
/// <summary> /// SetUI /// </summary> /// <param name="child"></param> public override void SetUI(frmBase child) { base.SetUI(child); Viewer = (frmFormList)child; }
/// <summary> /// SetUI /// </summary> /// <param name="child"></param> public override void SetUI(frmBase child) { base.SetUI(child); Viewer = (frmPrintTemplate)child; this.gvDataBindingSource = new BindingSource(); }
/// <summary> /// SetUI /// </summary> /// <param name="child"></param> public override void SetUI(frmBase child) { base.SetUI(child); Viewer = (frmTableManage)child; this.gvDataBindingSource = new BindingSource(); }
/// <summary> /// SetUI /// </summary> /// <param name="child"></param> public override void SetUI(frmBase child) { base.SetUI(child); Viewer = (frmReportDesigner)child; }
/// <summary> /// SetUI /// </summary> /// <param name="child"></param> public override void SetUI(frmBase child) { base.SetUI(child); Viewer = (frmFormDesign)child; this.gvDataBindingSource = new BindingSource(); }