Ejemplo n.º 1
0
        /// <summary>
        /// 初始化保管员列表
        /// </summary>
        public void InitKeeper()
        {
            DataTable dt = KeeperMgr.GetAll();

            if (dt != null)
            {
                this.lstKeeper.DataSource    = dt;
                this.lstKeeper.DisplayMember = dt.Columns[1].ToString();
                this.lstKeeper.ValueMember   = dt.Columns[0].ToString();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 初始化保管人员列表
        /// </summary>
        private void InitKeeper()
        {
            DataTable dt = KeeperMgr.GetAll();

            if (dt != null)
            {
                cbxKeeper.DataSource    = dt;
                cbxKeeper.DisplayMember = dt.Columns[1].ToString();
                cbxKeeper.ValueMember   = dt.Columns[0].ToString();
            }
        }