コード例 #1
0
 /// <summary>
 /// EditProperties event handler of the layerControl control
 /// </summary>
 /// <param name="sender">The source object of this event.</param>
 /// <param name="target">The target object to be edited.</param>
 void layerControl_EditProperties(object sender, MapObjectHolder target)
 {
     try
     {
         MapPropertyEditorForm mapPropertyEditor = new MapPropertyEditorForm(target);
         mapPropertyEditor.ShowDialog(this);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "MapManager", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }
コード例 #2
0
 /// <summary>
 /// Event handled to edit a sub-object.
 /// </summary>
 /// <param name="sender">The source object of this event.</param>
 /// <param name="target">The object to be edited.</param>
 void editor_EditProperties(object sender, MapObjectHolder target)
 {
     try
     {
         MapPropertyEditorForm mapPropertyEditor = new MapPropertyEditorForm(target);
         mapPropertyEditor.HelpRequested += new HelpEventHandler(mapPropertyEditor_HelpRequested);
         mapPropertyEditor.ShowDialog(this);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "MapManager", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }