コード例 #1
0
        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;
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }