public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            // get the editor service.
            IWindowsFormsEditorService edSvc = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService));

            if (edSvc == null)
            {
                // uh oh.
                return(value);
            }
            IDrill drill = context.Instance as IDrill;

            if (context.PropertyDescriptor.Name == "DrillToReport")
            {
                drill.DesignReportDrill();
            }
            else//vouch
            {
                drill.DesignVouchDrill();
            }

            return(value);
        }
 public Machine(IDrill drill, IWelder welder)
 {
     this.drill = drill;
     this.welder = welder;
 }