Esempio n. 1
0
File: Form1.cs Progetto: neckbor/nda
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                checkBoxSnake.Checked = false;
                checkBoxZZ.Checked    = false;

                Matrix obj = new Matrix(DataGridViewUtils.GridToArray2 <double>(mtxGrid));

                checkBoxZZ.Checked    = obj.IsSpiral();
                checkBoxSnake.Checked = obj.IsSnake();
            }
            catch (Exception exc)
            {
                MessageBox.Show(exc.ToString());
            }
        }
Esempio n. 2
0
File: Form1.cs Progetto: neckbor/nda
 public Form1()
 {
     InitializeComponent();
     DataGridViewUtils.InitGridForArr(mtxGrid, 30, false, true, true, true, true);
 }