public static PLCTag ShowPLCTagEditor(PLCTag tag)
 {
     PLCTagEditor tagedt=new PLCTagEditor();
     tagedt._libnodavevalue = new PLCTag(tag);
     tagedt.ShowDialog();
     return tagedt._libnodavevalue;
 }
Пример #2
0
        public static PLCTag ShowPLCTagEditor(PLCTag tag)
        {
            PLCTagEditor tagedt = new PLCTagEditor();

            tagedt._libnodavevalue = new PLCTag(tag);
            tagedt.ShowDialog();
            return(tagedt._libnodavevalue);
        }
Пример #3
0
        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)
                {
                    PLCTagEditor.ShowPLCTagEditor((PLCTag)value);
                }
            }
            return(value);
        }