Esempio n. 1
0
 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();
     }
 }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
        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;
        }
Esempio n. 4
0
        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);
        }