Exemple #1
0
 public Form4(Form3 previous_form, BinaryString polynomial, int n, int k, int d)
 {
     InitializeComponent();
     d_             = d;
     previous_form_ = previous_form;
     coding_form_   = new CodingForm(polynomial, n, k, this);
     decoding_form_ = new DecodingForm(polynomial, n, k, this);
 }
        public ResultCodingForm(CodingForm prev_form, BinaryString polynomial, BinaryString inf_word)
        {
            InitializeComponent();

            previous_form_ = prev_form;

            text_box.Text += "Закодируем слово " + inf_word.ToString() + ". Для этого умножим его на " +
                             "образующий многочлен " + polynomial.ToString() + ":\nB = I * F = " + inf_word.ToString() +
                             " * " + polynomial.ToString() + " = ";
            BinaryString code_word = polynomial * inf_word;

            text_box.Text += code_word.ToString();
        }