예제 #1
0
파일: Form1.cs 프로젝트: 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());
            }
        }
예제 #2
0
파일: Form1.cs 프로젝트: neckbor/nda
 public Form1()
 {
     InitializeComponent();
     DataGridViewUtils.InitGridForArr(mtxGrid, 30, false, true, true, true, true);
 }