Example #1
0
        private void stbSupplier_Click(object sender, EventArgs e)
        {
            List <int>         idl  = new List <int>();
            SelectSupplierForm form = new SelectSupplierForm(idl);

            form.SetMultiSelect(false);
            if (form.ShowDialog() == DialogResult.OK)
            {
                var sup = form.SelectedItem;
                if (sup != null)
                {
                    stbSupplier.Value = sup.SupplierName;
                }
            }
        }
Example #2
0
        private void TxtSelectDefinition_Click(object sender, EventArgs e)
        {
            SelectSupplierForm form = new   SelectSupplierForm();

            if (form.ShowDialog() == DialogResult.OK)
            {
                Supplier sam = form.SelectedItem;
                if (sam != null)
                {
                    SetValue(sam.SupPK);
                    //this.Value = mm.ParamName;
                    //this.Tag = mm;
                }
            }
        }