Beispiel #1
0
        //private void simpleButton1_Click_1(object sender, EventArgs e)
        //{
        //    using (frm_ManageMedicament frm = new frm_ManageMedicament(_Evento))
        //    {
        //        if (frm.ShowDialog() == DialogResult.OK)
        //        {
        //            patientMedicamentViewListBindingSource.DataSource = _Evento.PatientMedicaments;
        //            gridControl_Medicaments.RefreshDataSource();
        //            gridView_Medicaments.RefreshData();
        //        }
        //    }
        //}

        private void btnDiagnosis_Click(object sender, EventArgs e)
        {
            using (frm_EventDetails_Diagnosis frm = new frm_EventDetails_Diagnosis(_Evento))
            {
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    //medicalEventDetailViewListBindingSource.DataSource = _Evento.MedicalEventDetail_ViewList;
                    //gridControl_Details.RefreshDataSource();
                    //gridView_Details.RefreshData();
                    uC_EventDetailsGrid_Diagnosis.RefreshDataSourse();
                    //uC_EventDetailsGrid_Diagnosis.Populate(_Evento);
                    tab_Control.SelectedTabPage = tabPage_Diagnostico;
                }
            }
        }
        private void gridView_Details_DoubleClick(object sender, EventArgs e)
        {
            if (selectedDetails == null) return;

            using (frm_EventDetails_Diagnosis frm = new frm_EventDetails_Diagnosis(medicalEvent))
            {
                frm.Refresh();

                if (frm.ShowDialog() == DialogResult.OK)
                {
                    //Se debe obtener nuevamente dado q el PatientMedicaments que nos da la grilla pierde referencia con la coleccion _Evento.PatientMedicaments
                    gridControl_Details.RefreshDataSource();
                    gridView_Details.RefreshData();
                }
            }
        }
Beispiel #3
0
        private void gridView_Details_DoubleClick(object sender, EventArgs e)
        {
            if (selectedDetails == null)
            {
                return;
            }

            using (frm_EventDetails_Diagnosis frm = new frm_EventDetails_Diagnosis(medicalEvent))
            {
                frm.Refresh();

                if (frm.ShowDialog() == DialogResult.OK)
                {
                    //Se debe obtener nuevamente dado q el PatientMedicaments que nos da la grilla pierde referencia con la coleccion _Evento.PatientMedicaments
                    gridControl_Details.RefreshDataSource();
                    gridView_Details.RefreshData();
                }
            }
        }
Beispiel #4
0
        //private void simpleButton1_Click_1(object sender, EventArgs e)
        //{
        //    using (frm_ManageMedicament frm = new frm_ManageMedicament(_Evento))
        //    {
        //        if (frm.ShowDialog() == DialogResult.OK)
        //        {
        //            patientMedicamentViewListBindingSource.DataSource = _Evento.PatientMedicaments;
        //            gridControl_Medicaments.RefreshDataSource();
        //            gridView_Medicaments.RefreshData();
        //        }
        //    }
        //}

        private void btnDiagnosis_Click(object sender, EventArgs e)
        {
            
            using (frm_EventDetails_Diagnosis frm = new frm_EventDetails_Diagnosis(_Evento))
            {
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    //medicalEventDetailViewListBindingSource.DataSource = _Evento.MedicalEventDetail_ViewList;
                    //gridControl_Details.RefreshDataSource();
                    //gridView_Details.RefreshData();
                    uC_EventDetailsGrid_Diagnosis.RefreshDataSourse();
                    //uC_EventDetailsGrid_Diagnosis.Populate(_Evento);
                    tab_Control.SelectedTabPage = tabPage_Diagnostico;
                }
            }
        }