public override void Edit(PixelLayout control) { using var dialog = new ReferenceDialog(PipelineController.Instance, (Value as List <string>).ToArray()); if (dialog.ShowModal(control) && _eventHandler != null) { _eventHandler(dialog.References, EventArgs.Empty); PipelineController.Instance.OnReferencesModified(); } }
public override void Edit(PixelLayout control) { var dialog = new ReferenceDialog(PipelineController.Instance, (Value as List <string>).ToArray()); if (dialog.Run(control) == DialogResult.Ok && _eventHandler != null) { _eventHandler(dialog.References, EventArgs.Empty); } }
public override object EditValue(ITypeDescriptorContext context, System.IServiceProvider provider, object value) { var svc = provider.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService; var lines = (List<string>)value; if (svc != null && lines != null) { using (var form = new ReferenceDialog()) { form.Lines = lines; if (svc.ShowDialog(form) == DialogResult.OK) { lines = form.Lines; MainView._controller.OnProjectModified(); } } } return lines; }
public override object EditValue(ITypeDescriptorContext context, System.IServiceProvider provider, object value) { var svc = provider.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService; var lines = (List <string>)value; if (svc != null && lines != null) { using (var form = new ReferenceDialog()) { form.Lines = lines; if (svc.ShowDialog(form) == DialogResult.OK) { lines = form.Lines; MainView._controller.OnProjectModified(); } } } return(lines); }