/// <summary> /// Opens the property editor. /// </summary> /// <param name="_text">The description text that will be shown on the screen.</param> /// <param name="_selected">The object on which the properties should be shown or modified.</param> /// <returns>The dialog result of the property editor.</returns> public static DialogResult ShowModal(string _text, object _selected) { PropertyEditor frmPropertyEditor = new PropertyEditor(); frmPropertyEditor.Text = _text; frmPropertyEditor.SelectedObject = _selected; return(frmPropertyEditor.ShowDialog()); }
/// <summary> /// Opens the property editor. /// </summary> /// <param name="_text">The description text that will be shown on the screen.</param> /// <param name="_selected">The object on which the properties should be shown or modified.</param> /// <returns>The dialog result of the property editor.</returns> public static DialogResult ShowModal(string _text, object _selected) { PropertyEditor frmPropertyEditor = new PropertyEditor(); frmPropertyEditor.Text = _text; frmPropertyEditor.SelectedObject = _selected; return frmPropertyEditor.ShowDialog(); }