Example #1
0
        public 点餐菜品(string visit_record_id)
        {
            InitializeComponent();
            this.visit_record_id = visit_record_id;
            //设置值和显示值
            var dishesList = dishesDao.SelectAll();

            comboBox1.DataSource    = dishesList;
            comboBox1.DisplayMember = "dishes_name";
            comboBox1.ValueMember   = "dishes_id";
            comboBox1.SelectedIndex = 0;
        }
Example #2
0
        /// <summary>
        /// 刷新数据
        /// </summary>
        private void DataRefresh()
        {
            var dishess = dishesDao.SelectAll();

            this.dataGridView.DataSource = dishess;
        }