private void OnAddNewMedicineClick(object sender, EventArgs e)
        {
            Medicine obj = new Medicine(this.mOPDPrescription);

            MedicineForm.ShowForm(obj);
            MedicineCollection opdMedicineList = new MedicineCollection();

            this.cmbMedicine.DataSource    = opdMedicineList;
            this.cmbMedicine.DisplayMember = "DisplayName";
        }
示例#2
0
        public static bool ShowForm(Medicine obj)
        {
            bool r = false;

            if (!Objectbase.IsNullOrEmpty(obj))
            {
                using (MedicineForm frm = new MedicineForm(obj))
                {
                    r = frm.ShowDialog() == DialogResult.OK;
                }
            }
            return(r);
        }