예제 #1
0
파일: Form1.cs 프로젝트: a-27m/vssdb
 private void Form1_Shown(object sender, EventArgs e)
 {
     if (this.IsNewDocument)
     {
         FormAskDim fad = new FormAskDim();
         if (fad.ShowDialog(this) != DialogResult.OK)
         {
             Close();
         }
         n = fad.N;
         m = fad.M;
         GridMyResize(n, m);
         dataGridView1.Select();
     }
 }
예제 #2
0
        private void Form3_Shown(object sender, EventArgs e)
        {
            if (this.IsNewDocument)
            {
                FormAskDim fad = new FormAskDim();
                if (fad.ShowDialog(this) != DialogResult.OK)
                {
                    Close();
                }
                n = fad.N;
                m = fad.M;

                x = new Fraction[m, n];
                c = new Fraction[m, n];
                a = new Fraction[m];
                b = new Fraction[n];

                GridMyResize();
                dataGridView1.Select();
            }
        }