/// <summary> /// Set the Decomb Control /// </summary> /// <param name="value"> /// The value part of the CLI string /// </param> /// <param name="custom"> /// The custom option string /// </param> public void SetDecomb(Decomb value, string custom) { text_customDC.Text = string.Empty; text_customDC.Visible = false; switch (value) { case Decomb.Off: drop_decomb.SelectedIndex = 0; break; case Decomb.Default: drop_decomb.SelectedIndex = 2; break; case Decomb.Fast: drop_decomb.SelectedIndex = 3; break; default: drop_decomb.SelectedIndex = 1; text_customDC.Text = custom; text_customDC.Visible = true; break; } }