Beispiel #1
0
        //选择供应商按钮点击事件
        private void select_supplier_btn_Click(object sender, EventArgs e)
        {
            SupplierManage supplierManage = new SupplierManage(true);

            supplierManage.isModifyingGoods = true;
            supplierManage.ShowDialog(this);

            if (selectedSupplierItem != null)
            {
                select_supplier_btn.Text = selectedSupplierItem.SubItems[1].Text;
            }
        }
Beispiel #2
0
        //选择供应商按钮点击事件
        private void select_supplier_btn_Click(object sender, EventArgs e)
        {
            //打开供应商管理窗口,设置供应商管理窗口是否正在选择供应商属性为真
            SupplierManage supplierManage = new SupplierManage(true);

            supplierManage.ShowDialog(this);

            //如果选择的供应商不为空,将该按钮的文本修改为选择的供应商名称
            if (selectedSupplierItem != null)
            {
                select_supplier_btn.Text = selectedSupplierItem.SubItems[1].Text;
            }
        }