Esempio n. 1
0
 public static Space EditStatementOnSpaceMap(string statementXml, string editXml, string bgXml)
 {
     using (DialogSpaceMap form = CreateSpaceMapDialog("Edit statement", statementXml, editXml, bgXml))
     {
         if (form.ShowDialog() != DialogResult.Yes)
         {
             return(null);
         }
         else
         {
             return(form.pSpaceMap.SpaceMap);
         }
     }
 }
        private static DialogSpaceMap CreateSpaceMapDialog(string caption, string statementXml, string editXml, string bgXml)
        {
            DialogSpaceMap form = new DialogSpaceMap();

            form.Text = caption;
            form.pSpaceMap.SpaceMap.FromXml(statementXml);
            form.pSpaceMap.SpaceMap.FromXml(editXml);
            form.pSpaceMap.SpaceMap.FromXml(bgXml);
            form.pSpaceMap.SpaceMap.MarkAsImported();
            form.pSpaceMap.Mode = PanelSpaceMapMode.SingleSpecial;
            form._DSM_pg_Properties.SelectedObject = form.pSpaceMap.SpaceMap.SelectionSpecial;

            return form;
        }
Esempio n. 3
0
        private static DialogSpaceMap CreateSpaceMapDialog(string caption, string statementXml, string editXml, string bgXml)
        {
            DialogSpaceMap form = new DialogSpaceMap();

            form.Text = caption;
            form.pSpaceMap.SpaceMap.FromXml(statementXml);
            form.pSpaceMap.SpaceMap.FromXml(editXml);
            form.pSpaceMap.SpaceMap.FromXml(bgXml);
            form.pSpaceMap.SpaceMap.MarkAsImported();
            form.pSpaceMap.Mode = PanelSpaceMapMode.SingleSpecial;
            form._DSM_pg_Properties.SelectedObject = form.pSpaceMap.SpaceMap.SelectionSpecial;

            return(form);
        }