public void OpenDimensions() { if (frmDimensions == null) { frmDimensions = new FrmSetDimensions(); frmDimensions.MdiParent = this; frmDimensions.SetParentForm(this); OpenMap(frmDimensions); } else { frmDimensions.Show(); frmDimensions.BringToFront(); } }