/// <summary> /// Invokes the fill editor. /// </summary> /// <param name="fill">The fill to edit.</param> /// <returns>The new fill.</returns> public static FillBase EditFill(FillBase fill) { using (FillEditorForm editor = new FillEditorForm()) { editor.Fill = fill.Clone(); if (editor.ShowDialog() == DialogResult.OK) { return(editor.Fill); } } return(fill); }
/// <summary> /// Invokes the fill editor for the selected objects. /// </summary> /// <returns><b>true</b> if editor was closed by the OK button.</returns> public bool InvokeFillEditor() { using (FillEditorForm editor = new FillEditorForm()) { editor.Fill = First.Fill.Clone(); if (editor.ShowDialog() == DialogResult.OK) { SetFill(editor.Fill); return(true); } } return(false); }