Beispiel #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
            {
            }
        }
Beispiel #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();
     }
 }
Beispiel #3
0
 public void DesHabilitarCampos()
 {
     TextBoxMedia.Hide();
     TextBoxA.Hide();
     TextBoxB.Hide();
     // TextBoxValores.Hide();
     //TextBoxIntervalos.Hide();
     TextBoxMedia.Hide();
     TextBoxDesviacion.Hide();
     TextBoxLambda.Hide();
     A.Text          = "";
     B.Text          = "";
     Lambda.Text     = "";
     Media.Text      = "";
     Desviacion.Text = "";
 }