Esempio n. 1
0
 /// <summary>
 /// Invokes the border editor.
 /// </summary>
 /// <param name="border">The <b>Border</b> to edit.</param>
 /// <returns>The new border.</returns>
 public static Border EditBorder(Border border)
 {
     using (BorderEditorForm editor = new BorderEditorForm())
     {
         editor.Border = border.Clone();
         if (editor.ShowDialog() == DialogResult.OK)
         {
             return(editor.Border);
         }
     }
     return(border);
 }
 /// <summary>
 /// Invokes the border editor for the selected objects.
 /// </summary>
 /// <returns><b>true</b> if editor was closed by the OK button.</returns>
 public bool InvokeBorderEditor()
 {
     using (BorderEditorForm editor = new BorderEditorForm())
     {
         editor.Border = First.Border.Clone();
         if (editor.ShowDialog() == DialogResult.OK)
         {
             SetBorder(editor.Border);
             return(true);
         }
     }
     return(false);
 }