private void btnAutogenerationBinaryNumbers_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                BinEncoding initEncoding = BinEncoding.GenerateRandomEncoding();
                cbInitialEncoding.Text = initEncoding.ToString();
                _variableByUserBinaryNumber = initEncoding.GenerateRandomBinaryNumber();

                tbInitCode.Text = _variableByUserBinaryNumber.ToString();
                tbEndCode.Text = tbInitCode.Text;

                BinEncoding endEncoding = BinEncoding.GenerateRandomEncoding();
                cbEndEncoding.Text = endEncoding.ToString();
                PrepareComponentsToModifyNumber();
            }
            catch (ArgumentException)
            {
                MessageBox.Show("Неверное значение бинарного числа!", "Ошибка ввода!");
            }
            catch(Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
 private void btnBegin_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         _variableByUserBinaryNumber = BinEncoding.StrToBinEncoding(cbInitialEncoding.Text).MakeNumber(tbInitCode.Text.ToCharArray());
         tbEndCode.Text = _variableByUserBinaryNumber.ToString();
         PrepareComponentsToModifyNumber();
     }
     catch (ArgumentException argEx)
     {
         MessageBox.Show(argEx.Message, "Ошибка ввода!");
     }
 }