public override DialogResult CreateContent(IWin32Window dialogOwner, ISmartContent newContent) { using (var contentForm = new ContentForm(newContent.Properties, Options)) { return contentForm.ShowDialog(dialogOwner); } }
/// <summary> /// Handler for settings button click /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnOverrides(object sender, EventArgs e) { if (SelectedContent != null) { using (var contentForm = new ContentForm(SelectedContent.Properties, _options)) { if (DialogResult.OK == contentForm.ShowDialog(this)) { // Set data to controls SetContentToControls(SelectedContent.Properties); // Fire event OnContentEdited(); } } } }