示例#1
0
        private void BTN_Edit_Click(object sender, EventArgs e)
        {
            DLG_PrescriptionRenewal dlg = new DLG_PrescriptionRenewal();

            dlg.Stores = Stores;
            dlg.prescriptionRenewal = currentPrescriptionRenewal;
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                this.Refresh();
            }
        }
        private void BTN_Edit_Click(object sender, EventArgs e)
        {
            DLG_PrescriptionRenewal dlg = new DLG_PrescriptionRenewal();

            dlg.Stores = Stores;
            dlg.PrescriptionRenewal = currentPrescriptionRenewal;
            dlg.Text = "Modification de renouvellement d'ordonnance";
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                this.Refresh();
                Update_UI();
            }
        }
        private void BTN_New_Click(object sender, EventArgs e)
        {
            DLG_PrescriptionRenewal dlg = new DLG_PrescriptionRenewal();

            dlg.Stores = Stores;

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                currentPrescriptionRenewal = dlg.PrescriptionRenewal;
                this.Refresh();
                Update_UI();
            }
        }