Beispiel #1
0
        public static void editar(ComboBox Camara, ComboBox Electrometro, TextBox FactorCali, ComboBox SignoTension, TextBox Tension,
                                  ComboBox HazRef, TextBox TempRef, TextBox PresRef, TextBox HumRef, DateTime FechaCal, TextBox LaboCalibracion,
                                  int indice)
        {
            SistemaDosimetrico aux = lista()[indice];

            if (!Camara.Items.Contains(aux.camara))
            {
                Camara.Items.Add(aux.camara);
            }
            Camara.SelectedItem = aux.camara;
            if (!Electrometro.Items.Contains(aux.electrometro))
            {
                Electrometro.Items.Add(aux.electrometro);
            }
            Electrometro.SelectedItem = aux.electrometro;
            FactorCali.Text           = Convert.ToString(aux.FactorCalibracion);
            if (aux.SignoTension == 1)
            {
                SignoTension.SelectedItem = "+";
            }
            else
            {
                SignoTension.SelectedItem = "-";
            }
            Tension.Text         = Convert.ToString(aux.Tension);
            HazRef.SelectedItem  = aux.HazDeRef;
            TempRef.Text         = Convert.ToString(aux.TempRef);
            PresRef.Text         = Convert.ToString(aux.PresionRef);
            HumRef.Text          = Calcular.stringNaN(aux.HumedadRef);
            FechaCal             = Convert.ToDateTime(aux.FechaCalibracion);
            LaboCalibracion.Text = aux.LaboCalibracion;
        }
Beispiel #2
0
        public static void editar(TextBox Energia, TextBox Zref, TextBox Lado, TextBox PDDZref, TextBox TMRZref, DataGridView DGV)
        {
            EnergiaFotones aux = lista(DGV)[DGV.SelectedRows[0].Index];

            Energia.Text = aux.Energia.ToString();
            Zref.Text    = Calcular.stringNaN(aux.ZRefFot);
            Lado.Text    = Calcular.stringNaN(aux.LadoCampo);
            PDDZref.Text = Calcular.stringNaN(aux.PddZrefFot);
            TMRZref.Text = Calcular.stringNaN(aux.TmrZrefFot);
        }
Beispiel #3
0
        public static void editar(TextBox Energia, TextBox R50Ion, TextBox Lado, Label R50D, Label Zref, TextBox PDDZref, DataGridView DGV)
        {
            EnergiaElectrones aux = lista(DGV)[DGV.SelectedRows[0].Index];

            Energia.Text = aux.Energia.ToString();
            R50Ion.Text  = Calcular.stringNaN(aux.R50ion);
            Lado.Text    = Calcular.stringNaN(aux.LadoCampo);
            R50D.Text    = Calcular.stringNaN(aux.R50D);
            Zref.Text    = Calcular.stringNaN(aux.Zref);
            PDDZref.Text = Calcular.stringNaN(aux.PDDZrefElec);
        }