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(); } }
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(); } }