private void SetMap(string Filename,frmMap MapToSet) { frmMap fm = GetMap(Filename); if (fm == null) return; int i = OpenFiles.IndexOf(fm); OpenFiles[i] = MapToSet; }
private void ShowNewForm(object sender, EventArgs e) { frmMap childForm = new frmMap(); childForm.MdiParent = this; childForm.Text = "Untitled Map " + childFormNumber++; childForm.Show(); childForm.Map = null; OpenFiles.Add(childForm); }
private string NewForm() { frmMap childForm = new frmMap(); childForm.MdiParent = this; childForm.Text = "Untitled Map " + childFormNumber++; childForm.Show(); childForm.Map = null; OpenFiles.Add(childForm); return childForm.Text; }