Ejemplo n.º 1
0
        private void buttonGoods_Click(object sender, EventArgs e)
        {
            AddCodeForm form = new AddCodeForm(this.m_ArrayListGood, true, this.comboBoxFPZL.SelectedValue.ToString())
            {
                ShowInTaskbar = false,
                Text          = "选择商品名称",
                strLabelSrc   = "所有商品名称",
                strLabelDest  = "已选商品名称"
            };

            form.ShowDialog();
            this.m_ArrayListGood  = form.m_ArrayListDest;
            this.textBoxSPMC.Text = "";
            int num = 0;

            if (this.m_ArrayListGood.Count > 0)
            {
                while (num < this.m_ArrayListGood.Count)
                {
                    this.textBoxSPMC.Text = this.textBoxSPMC.Text + this.m_ArrayListGood[num].ToString();
                    if ((num + 1) != this.m_ArrayListGood.Count)
                    {
                        this.textBoxSPMC.Text = this.textBoxSPMC.Text + ";";
                    }
                    num++;
                }
            }
        }
Ejemplo n.º 2
0
        private void buttonName_Click(object sender, EventArgs e)
        {
            string      str  = this.comboBoxFPZL.SelectedValue.ToString();
            AddCodeForm form = new AddCodeForm(this.m_ArrayList, false, str)
            {
                ShowInTaskbar = false,
                Text          = "选择购方名称",
                strLabelSrc   = "所有购方名称",
                strLabelDest  = "已选购方名称"
            };

            form.ShowDialog();
            this.m_ArrayList      = form.m_ArrayListDest;
            this.textBoxGFMC.Text = "";
            int num = 0;

            while (num < (this.m_ArrayList.Count - 1))
            {
                this.textBoxGFMC.Text = this.textBoxGFMC.Text + this.m_ArrayList[num].ToString();
                this.textBoxGFMC.Text = this.textBoxGFMC.Text + ";";
                num++;
            }
            if (this.m_ArrayList.Count > 0)
            {
                this.textBoxGFMC.Text = this.textBoxGFMC.Text + this.m_ArrayList[num].ToString();
            }
        }