public frmAdjustItem(frmBookList oFrmBook, Model.Transaction oTrans) { InitializeComponent(); oFrmBookLst = oFrmBook; oMTransaction = oTrans; eVariable.DisableTextEnterKey(pnlMain); eVariable.DisableTextEnterKey(pnlOther); GetDataRecordFunctionPointer += new GetDataRecordFunction(GetRecord); iGridControl.GetDataRecord = GetDataRecordFunctionPointer; }
public frmBookEntry(frmBookList oFrmList, Model.Transaction oTrans) { InitializeComponent(); oMTransaction = oTrans; oFrmBookList = oFrmList; eVariable.DisableTextEnterKey(pnlMain); eVariable.DisableTextEnterKey(pnlOther); eVariable.m_ActionType = eVariable.ACTION_TYPE.EDIT; eVariable.DisableKeyPress(txtAuthor); eVariable.DisableKeyPress(txtLocation); eVariable.DisableKeyPress(txtCategory); eVariable.ValidAmount(txtBookPrice); eVariable.ValidAmount(txtRentPrice); }
public frmBookEntry(Forms.frmBookList oFrmList) { InitializeComponent(); oFrmBookList = oFrmList; GetBookID(); eVariable.m_ActionType = eVariable.ACTION_TYPE.ADD; eVariable.DisableTextEnterKey(pnlMain); eVariable.DisableTextEnterKey(pnlOther); eVariable.DisableKeyPress(txtAuthor); eVariable.DisableKeyPress(txtLocation); eVariable.DisableKeyPress(txtCategory); eVariable.ValidAmount(txtBookPrice); eVariable.ValidAmount(txtRentPrice); }