using Bro.Common.Interface; using Bro.Process.UI; using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing.Design; using System.Windows.Forms.Design; namespace Bro.Device.Station { //public class MonitorSetBindEditor : UITypeEditor //{ // public override UITypeEditorEditStyle GetEditStyle(System.ComponentModel.ITypeDescriptorContext context) // { // return UITypeEditorEditStyle.Modal; // } // public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) // { // IWindowsFormsEditorService edSvc = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService)); // if (edSvc != null) // { // MonitorSetBindFrm form = new MonitorSetBindFrm(value as Dictionary); // form.ShowDialog(); // return form.MonitorSetBind; // } // return base.EditValue(context, provider, value); // } //} //public class OperationConfigBindEditor : UITypeEditor //{ // public override UITypeEditorEditStyle GetEditStyle(System.ComponentModel.ITypeDescriptorContext context) // { // return UITypeEditorEditStyle.Modal; // } // public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) // { // IWindowsFormsEditorService edSvc = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService)); // if (edSvc != null) // { // OperationConfigBindFrm form = new OperationConfigBindFrm(value as Dictionary); // form.ShowDialog(); // return form.OpBinds; // } // return base.EditValue(context, provider, value); // } //} //public class ROIsEditor : UITypeEditor //{ // public override UITypeEditorEditStyle GetEditStyle(System.ComponentModel.ITypeDescriptorContext context) // { // return UITypeEditorEditStyle.Modal; // } // public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) // { // IWindowsFormsEditorService edSvc = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService)); // if (edSvc != null) // { // //MonitorSetBindFrm form = new MonitorSetBindFrm(code, value as Dictionary); // //form.ShowDialog(); // //return form.MonitorSetBind; // } // return base.EditValue(context, provider, value); // } //} }