private void cmbSample_SelectedIndexChanged(object sender, EventArgs e)
{
if (cmbSample.SelectedItem as ComboBoxItem != null)
{
var b = ((ComboBoxItem)cmbSample.SelectedItem).Value;
tbInput.Text = b.ToString();
tbInputLength.Text = tbInput.Text.Length.ToString();
tbOutput.Clear();
tbOutputLength.Text = "0";
tbOutputSize.Text = "0";
}
}