private void toolStripButton1_Click(object sender, EventArgs e) { if (currentRowId > 0) { C_Moving form = new C_Moving(currentRowId); //Объект формы form.MdiParent = this.ParentForm; //Указываем родителя form.Show(); } }
private void button1_Click(object sender, EventArgs e) { if (currentRegNumber != "" && currentid != 0) { C_Moving form = new C_Moving(currentRegNumber, currentid); //Объект формы form.MdiParent = this.ParentForm; //Указываем родителя form.Show(); } }