Example #1
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();
     }
 }
Example #2
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 = "";
 }