public override object EditValue(System.ComponentModel.ITypeDescriptorContext context,
     IServiceProvider provider, object value)
 {
     var trigger = (TerminalScriptTrigger)value;
     var dlg = new TriggerSetupDialog(trigger);
     return dlg.ShowDialog() == DialogResult.OK ? dlg.Trigger : trigger;
 }
Beispiel #2
0
        public override object EditValue(System.ComponentModel.ITypeDescriptorContext context,
                                         IServiceProvider provider, object value)
        {
            var trigger = (TerminalScriptTrigger)value;
            var dlg     = new TriggerSetupDialog(trigger);

            return(dlg.ShowDialog() == DialogResult.OK ? dlg.Trigger : trigger);
        }