public void OpenExistingBuilder(AMap theMap) { this.KeyPreview = true; //if (frmBuilder == null) //{ frmBuilder = new FrmDesigner(); frmBuilder.MdiParent = this; frmBuilder.SetParentForm(this); frmBuilder.LoadUserMap(theMap); SetFormProperties(frmBuilder); SetSizeManually(frmBuilder, frmBuilder.GetSize()); frmBuilder.Show(); frmBuilder.BringToFront(); }
public void OpenNewBuilder(Point newDimensions) { //if (frmBuilder == null) //{ frmBuilder = new FrmDesigner(); frmBuilder.MdiParent = this; frmBuilder.SetParentForm(this); frmBuilder.Init(newDimensions); SetFormProperties(frmBuilder); SetSizeManually(frmBuilder, frmBuilder.GetSize()); frmBuilder.Show(); frmBuilder.BringToFront(); /*} * else * { * frmBuilder.Init(newDimensions); * SetSizeManually(frmBuilder, frmBuilder.GetSize()); * frmBuilder.Show(); * frmBuilder.BringToFront(); * }*/ }
public void OpenNewBuilder(Point newDimensions) { //if (frmBuilder == null) //{ frmBuilder = new FrmDesigner(); frmBuilder.MdiParent = this; frmBuilder.SetParentForm(this); frmBuilder.Init(newDimensions); SetFormProperties(frmBuilder); SetSizeManually(frmBuilder, frmBuilder.GetSize()); frmBuilder.Show(); frmBuilder.BringToFront(); /*} else { frmBuilder.Init(newDimensions); SetSizeManually(frmBuilder, frmBuilder.GetSize()); frmBuilder.Show(); frmBuilder.BringToFront(); }*/ }