public static PLCNckTag ShowPLCTagEditor(PLCNckTag tag) { NckTagEditor tagedt = new NckTagEditor(); tagedt._libnodavevalue = tag; tagedt.ShowDialog(); return(tagedt._libnodavevalue); }
public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value) { if (context != null && context.Instance != null && provider != null) { m_objService = (System.Windows.Forms.Design.IWindowsFormsEditorService)provider.GetService(typeof(System.Windows.Forms.Design.IWindowsFormsEditorService)); if (m_objService != null) { value = NckTagEditor.ShowPLCTagEditor((PLCNckTag)value); } } return(value); }