internal RoomListSearchPlayerDialog() { InitializeComponent(); Icon = Global.Properties.Resources.CirnixIcon; Label_Title.MouseDown += new MouseEventHandler(Label_Title_MouseDown); Label_Title.MouseMove += new MouseEventHandler(Label_Title_MouseMove); Label_Title.MouseUp += new MouseEventHandler(Label_Title_MouseUp); TB_ID.Focus(); }
private void BT_GuardarPaciente_Click(object sender, EventArgs e) { cerrarPaciente(); TB_ID.Clear(); LB_Cursos.Items.Clear(); LB_Planes.Items.Clear(); DGV_Estructuras.DataSource = null; DGV_Estructuras.Rows.Clear(); DGV_Prescripciones.Rows.Clear(); BT_GuardarPaciente.Enabled = false; pacienteNro++; }
private void automatizarLista() { CHB_VolumenEstructuras.Checked = false; List <string> lista = Mineria.leerArchivos(); foreach (string elemento in lista) { Mineria.Caso caso = Mineria.leerCaso(elemento); abrirPaciente(caso.pacienteID); if (listaPlanes(paciente.Courses.First()).Exists(p => p.Id == caso.planID)) { plan = paciente.Courses.First().PlanSetups.Where(p => p.Id == caso.planID).FirstOrDefault(); if (plan is PlanSetup && (((PlanSetup)plan).ApprovalStatus == PlanSetupApprovalStatus.PlanningApproved || ((PlanSetup)plan).ApprovalStatus == PlanSetupApprovalStatus.TreatmentApproved)) { llenarDGVEstructuras(); llenarDGVPrescripciones(); aplicarPrescripciones(); llenarDGVAnalisis(); cerrarPaciente(); TB_ID.Clear(); LB_Cursos.Items.Clear(); LB_Planes.Items.Clear(); DGV_Estructuras.DataSource = null; DGV_Estructuras.Rows.Clear(); DGV_Prescripciones.Rows.Clear(); BT_GuardarPaciente.Enabled = false; pacienteNro++; } else { cerrarPaciente(); } } else { cerrarPaciente(); } } }