public frmPageNumber(frmDeclarationManagement frmParent,UserInfo userInfo, long declarationId, bool isSecondHandover = false) { this.Text = "Ban giao ho so" + ConstantInfo.MESSAGE_TITLE + GlobalInfo.CompanyName; declaration = DeclarationFactory.GetByID(declarationId); _isSecondHandover = isSecondHandover; _userInfo = userInfo; _frmParent = frmParent; InitializeComponent(); if (_isSecondHandover) { txtPageNumber.ReadOnly = _isSecondHandover; txtPageNumber.Text = declaration.PageNumbers.Value.ToString(); } }
private void mnuHandover1_Click(object sender, EventArgs e) { var frm = new frmDeclarationManagement(_userInfo); frm.Show(this); }