public frmPublicOperateArea(VariedEnum.ItemType paramItemType) { InitializeComponent(); this.PublicOperator = paramItemType; this.txtCreateDate.Text = DateTime.Now.ToString(); this.txtCreatePerson.Text = frmAssist.frmLogin.SysUser.UserName; }
/// <summary> /// Initializes a new instance of the <see cref="frmPublicOperateArea"/> class. /// </summary> /// <param name="paramItemType">Type of the param item.</param> /// <param name="paramInfo">The param info.</param> /// <remarks></remarks> public frmPublicOperateArea(VariedEnum.ItemType paramItemType, object[] paramInfo) { InitializeComponent(); PublicOperator = paramItemType; this.txtCreateDate.Text = DateTime.Now.ToString(); this.txtCreatePerson.Text = frmAssist.frmLogin.SysUser.UserName; this.lblPerson.Text = "修改(&U)人:"; this.lblDate.Text = "修改(&U)时间:"; try { if (paramInfo.Length > 0) { this.Text = "信息修改(&U)"; FillInfo(paramInfo); this.btnSave.Click -= this.btnSave_Click; this.btnSave.Click += this.btnRSave_Click; } } catch (Exception ex) { XtraMessageBox.Show(ex.Message); } }