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