Esempio n. 1
0
        public void HabilitarCampos(String distribucion)
        {
            DesHabilitarCampos();
            TextBoxValores.Enabled    = true;
            TextBoxIntervalos.Enabled = true;

            if (distribucion == "Normal")
            {
                Media.Text      = "Media";
                Desviacion.Text = "Desviacion";
                TextBoxMedia.Show();
                TextBoxDesviacion.Show();
            }
            else if (distribucion == "Uniforme")
            {
                A.Text = "A";
                B.Text = "B";
                TextBoxA.Show();
                TextBoxB.Show();
            }
            else if (distribucion == "Exponencial")
            {
                Media.Text = "Media";
                TextBoxMedia.Show();
            }
            else if (distribucion == "Poisson")
            {
                Lambda.Text = "Lambda";
                TextBoxLambda.Show();
            }
            else
            {
            }
        }
Esempio n. 2
0
 private void checkPoisson_CheckedChanged(object sender, EventArgs e)
 {
     if (checkPoisson.Checked)
     {
         TextBoxLambda.Text    = "";
         TextBoxLambda.Enabled = false;
         TextBoxMedia.Show();
         Media.Text  = "Media";
         Lambda.Text = "";
         lambda      = false;
         TextBoxLambda.Hide();
     }
     else
     {
         lambda = true;
         LimpiarCampos();
         TextBoxLambda.Enabled = true;
         Lambda.Text           = "Lambda";
         Media.Text            = "";
         TextBoxMedia.Hide();
         TextBoxValores.Text    = "10000";
         TextBoxIntervalos.Text = "10";
         TextBoxLambda.Text     = "15";
         checkPoisson.Enabled   = true;
         TextBoxLambda.Show();
     }
 }