Example #1
0
        private void buttonOpen_Click(object sender, EventArgs e)
        {
            switch (form)
            {
            case FormEnum.Clinic:
            {
                bool isEditView             = true;
                var  newClinicEdit          = new NewClinic(isEditView);
                var  newClinicEditPresenter = new NewClinicEditPresenter(newClinicEdit, (DtoClinic)gridView.GetFocusedRow());
                newClinicEdit.ShowDialog();
                break;
            }

            case FormEnum.Test:
            {
                bool isEditView           = true;
                var  newTestEdit          = new NewTest(isEditView);
                var  newTestEditPresenter = new NewTestEditPresenter(newTestEdit, (DtoTest)gridView.GetFocusedRow());
                newTestEdit.ShowDialog();
                break;
            }

            case FormEnum.Diagnosis:
            {
                bool isEditView                = true;
                var  newDiagnosisEdit          = new NewDiagnosis(isEditView);
                var  newDiagnosisEditPresenter = new NewDiagnosisEditPresenter(newDiagnosisEdit, (DtoDiagnosis)gridView.GetFocusedRow());
                newDiagnosisEdit.ShowDialog();
                break;
            }

            case FormEnum.Indication:
            {
                bool isEditView                 = true;
                var  newIndicationEdit          = new NewIndication(isEditView);
                var  newIndicationEditPresenter = new NewIndicationEditPresenter(newIndicationEdit, (DtoIndication)gridView.GetFocusedRow());
                newIndicationEdit.ShowDialog();
                break;
            }

            case FormEnum.Sex:
            {
                bool isEditView          = true;
                var  newSexEdit          = new NewSex(isEditView);
                var  newSexEditPresenter = new NewSexEditPresenter(newSexEdit, (DtoSex)gridView.GetFocusedRow());
                newSexEdit.ShowDialog();
                break;
            }

            case FormEnum.Specimen:
            {
                bool isEditView               = true;
                var  newSpecimenEdit          = new NewSpecimen(isEditView);
                var  newSpecimenEditPresenter = new NewSpecimenEditPresenter(newSpecimenEdit, (DtoSpecimen)gridView.GetFocusedRow());
                newSpecimenEdit.ShowDialog();
                break;
            }
            }
        }
Example #2
0
        private void buttonNew_Click(object sender, EventArgs e)
        {
            switch (form)
            {
            case FormEnum.Clinic:
            {
                var newClinic          = new NewClinic();
                var newClinicPresenter = new NewClinicPresenter(newClinic);
                newClinic.ShowDialog();
                break;
            }

            case FormEnum.Test:
            {
                var newTest          = new NewTest();
                var newTestPresenter = new NewTestPresenter(newTest);
                newTest.ShowDialog();
                break;
            }

            case FormEnum.Diagnosis:
            {
                var newDiagnosis          = new NewDiagnosis();
                var newDiagnosisPresenter = new NewDiagnosisPresenter(newDiagnosis);
                newDiagnosis.ShowDialog();
                break;
            }

            case FormEnum.Indication:
            {
                var newIndication          = new NewIndication();
                var newIndicationPresenter = new NewIndicationPresenter(newIndication);
                newIndication.ShowDialog();
                break;
            }

            case FormEnum.Sex:
            {
                var newSex          = new NewSex();
                var newSexPresenter = new NewSexPresenter(newSex);
                newSex.ShowDialog();
                break;
            }

            case FormEnum.Specimen:
            {
                var newSpecimen          = new NewSpecimen();
                var newSpecimenPresenter = new NewSpecimenPresenter(newSpecimen);
                newSpecimen.ShowDialog();
                break;
            }
            }
        }
Example #3
0
 private void buttonOpen_Click(object sender, EventArgs e)
 {
     switch (form)
     {
         case FormEnum.Clinic:
             {
                 bool isEditView = true;
                 var newClinicEdit = new NewClinic(isEditView);
                 var newClinicEditPresenter = new NewClinicEditPresenter(newClinicEdit, (DtoClinic)gridView.GetFocusedRow());
                 newClinicEdit.ShowDialog();
                 break;
             }
         case FormEnum.Test:
             {
                 bool isEditView = true;
                 var newTestEdit = new NewTest(isEditView);
                 var newTestEditPresenter = new NewTestEditPresenter(newTestEdit, (DtoTest)gridView.GetFocusedRow());
                 newTestEdit.ShowDialog();
                 break;
             }
         case FormEnum.Diagnosis:
             {
                 bool isEditView = true;
                 var newDiagnosisEdit = new NewDiagnosis(isEditView);
                 var newDiagnosisEditPresenter = new NewDiagnosisEditPresenter(newDiagnosisEdit, (DtoDiagnosis)gridView.GetFocusedRow());
                 newDiagnosisEdit.ShowDialog();
                 break;
             }
         case FormEnum.Indication:
             {
                 bool isEditView = true;
                 var newIndicationEdit = new NewIndication(isEditView);
                 var newIndicationEditPresenter = new NewIndicationEditPresenter(newIndicationEdit, (DtoIndication)gridView.GetFocusedRow());
                 newIndicationEdit.ShowDialog();
                 break;
             }
         case FormEnum.Sex:
             {
                 bool isEditView = true;
                 var newSexEdit = new NewSex(isEditView);
                 var newSexEditPresenter = new NewSexEditPresenter(newSexEdit, (DtoSex)gridView.GetFocusedRow());
                 newSexEdit.ShowDialog();
                 break;
             }
         case FormEnum.Specimen:
             {
                 bool isEditView = true;
                 var newSpecimenEdit = new NewSpecimen(isEditView);
                 var newSpecimenEditPresenter = new NewSpecimenEditPresenter(newSpecimenEdit, (DtoSpecimen)gridView.GetFocusedRow());
                 newSpecimenEdit.ShowDialog();
                 break;
             }
     }
 }
Example #4
0
 private void buttonNew_Click(object sender, EventArgs e)
 {
     switch (form)
     {
         case FormEnum.Clinic:
             {
                 var newClinic = new NewClinic();
                 var newClinicPresenter = new NewClinicPresenter(newClinic);
                 newClinic.ShowDialog();
                 break;
             }
         case FormEnum.Test:
             {
                 var newTest = new NewTest();
                 var newTestPresenter = new NewTestPresenter(newTest);
                 newTest.ShowDialog();
                 break;
             }
         case FormEnum.Diagnosis:
             {
                 var newDiagnosis = new NewDiagnosis();
                 var newDiagnosisPresenter = new NewDiagnosisPresenter(newDiagnosis);
                 newDiagnosis.ShowDialog();
                 break;
             }
         case FormEnum.Indication:
             {
                 var newIndication = new NewIndication();
                 var newIndicationPresenter = new NewIndicationPresenter(newIndication);
                 newIndication.ShowDialog();
                 break;
             }
         case FormEnum.Sex:
             {
                 var newSex = new NewSex();
                 var newSexPresenter = new NewSexPresenter(newSex);
                 newSex.ShowDialog();
                 break;
             }
         case FormEnum.Specimen:
             {
                 var newSpecimen = new NewSpecimen();
                 var newSpecimenPresenter = new NewSpecimenPresenter(newSpecimen);
                 newSpecimen.ShowDialog();
                 break;
             }
     }
 }