Esempio n. 1
0
 /// <summary>
 /// Atvaizduoja sugeneruotą matricą
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void viewMatrixButton_Click(object sender, EventArgs e)
 {
     if (matrix != null)
     {
         MatrixEdit matrixForm = new MatrixEdit(matrix);
         matrixForm.ShowDialog();
     }
     else
     {
         MessageBox.Show("Matrica dar nesugeneruota", "Klaida", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Atidaromas matricos sukūrimo langas ir išsaugoma sukurta matrica
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void generateMatrixButton_Click(object sender, EventArgs e)
        {
            MatrixEdit matrixForm = new MatrixEdit();

            matrixForm.generate = true;
            if (matrixForm.ShowDialog() == DialogResult.OK)
            {
                matrix                = matrixForm.matrix;
                encodedData           = "";
                encodedDataWithCoding = "";
            }
        }