Exemple #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            DialogResult result = XtraMessageBox.Show("Do you to add this Readings ?", "Adding", MessageBoxButtons.YesNo,
                                                      MessageBoxIcon.Exclamation);

            switch (result)
            {
            case DialogResult.Yes:
                VisitTiming_VitalSign visitTiming_VitalSign =
                    PEMRBusinessLogic.CreateNew_VisitTiming_VitalSign(this,
                                                                      ApplicationStaticConfiguration.PEMRSavingMode);
                if (visitTiming_VitalSign != null)
                {
                    if (PEMRBusinessLogic.ActivePEMRObject.List_VisitTiming_VitalSign == null)
                    {
                        PEMRBusinessLogic.ActivePEMRObject.List_VisitTiming_VitalSign =
                            new List <VisitTiming_VitalSign>();
                    }
                    PEMRBusinessLogic.ActivePEMRObject.List_VisitTiming_VitalSign.Add(visitTiming_VitalSign);
                }

                btnActiveVitalSign_Click(null, null);
                ClearControls(false);
                break;
            }
        }