Esempio n. 1
0
        /// <summary>
        /// 数据绑定
        /// </summary>
        private void DataBind()
        {
            //上方窗体数据绑定
            OrderDataGridView.DataSource = interviewBll.GetAllPurchaseOrders();

            //下方窗体数据绑定
            ReturnListDataGridView.DataSource = interviewBll.GetAllReturnList();

            //出版社数据绑定
            BindingSource bs_PublishingHouse = new BindingSource();

            bs_PublishingHouse.DataSource         = utilBll.GetPublishingHouseNames();
            publishingHouseComboBox.DataSource    = bs_PublishingHouse;
            publishingHouseComboBox.ValueMember   = "Key";
            publishingHouseComboBox.DisplayMember = "Value";

            SubscriberTextBox.Text = AdminForm.admin.Number;
        }