Example #1
0
        private void MainForm_Activated(object sender, EventArgs e)
        {
            DiaAllService.ReadDiagnosis();
            dateCalendar.Value = DateTime.Now;

            cmbOrganization.Items.Clear();
            foreach (Organization o in OrgServise.GetOrganizations())
            {
                cmbOrganization.Items.Add(o.GetName());
            }

            DiagnosisAll diaAll = DiaAllService.GetDiagnosisAll();

            cmdDiagnosisBio.Items.Clear();
            foreach (Diagnosis o in diaAll.GetDiagnosesBio())
            {
                cmdDiagnosisBio.Items.Add(o.GetName());
            }

            cmdDiagnosisLitt.Items.Clear();
            foreach (Diagnosis o in diaAll.GetDiagnosesLittle())
            {
                cmdDiagnosisLitt.Items.Add(o.GetName());
            }

            cmdDiagnosisBig.Items.Clear();
            foreach (Diagnosis o in diaAll.GetDiagnosesBig())
            {
                cmdDiagnosisBig.Items.Add(o.GetName());
            }

            dateCalendar.Value = DateTime.Now;

            showTransaction();
        }
Example #2
0
        private void CreateForm_Activated(object sender, EventArgs e)
        {
            try
            {
                catService.ReadCategory();
            }
            catch (Exception ex) { }

            ShowCategory();

            try
            {
                diaService.ReadDiagnosis();
            }
            catch (Exception ex) { }

            try
            {
                orgService.ReadOrganization();
            }
            catch (Exception ex) { }

            ShowOrganization();
        }