public static Space EditOnSpaceMap(List <int> namedList, List <int> namelessList, string editXml, string bgXml) { using (FormSpaceMap form = CreateSpaceMapForm("Edit or add objects", namedList, namelessList, editXml, bgXml)) { if (form.ShowDialog() != DialogResult.Yes) { return(null); } else { return(form.pSpaceMap.SpaceMap); } } }
public static Space AddViaSpaceMap(string bgXml) { using (FormSpaceMap form = CreateSpaceMapForm("Add new objects", new List <int>(), new List <int>(), "<input></input>", bgXml)) { if (form.ShowDialog() != DialogResult.Yes) { return(null); } else { return(form.pSpaceMap.SpaceMap); } } }