Ejemplo n.º 1
0
 private void Form1_Shown(object sender, EventArgs e)
 {
     if (this.IsNewDocument)
     {
         FormAskDim fad = new FormAskDim();
         if (fad.ShowDialog() != DialogResult.OK)
         {
             Close();
         }
         n = fad.N;
         m = fad.M;
         GridMyResize(n, m);
         //dataGridView1.Select();
     }
 }
Ejemplo n.º 2
0
        public FormTaskOne()
        {
            InitializeComponent();

            if (this.IsNewDocument)
            {
                FormAskDim fad = new FormAskDim();

                if (fad.ShowDialog() != DialogResult.OK)
                {
                    Close();
                }

                n = fad.N;
                m = fad.M;
                GridMyResize(n, m);
            }
        }