public static PLCTag ShowPLCTagEditor(PLCTag tag)
 {
     PLCTagEditor tagedt=new PLCTagEditor();
     tagedt._libnodavevalue = new PLCTag(tag);
     tagedt.ShowDialog();
     return tagedt._libnodavevalue;
 }
Exemplo n.º 2
0
        public static PLCTag ShowPLCTagEditor(PLCTag tag)
        {
            PLCTagEditor tagedt = new PLCTagEditor();

            tagedt._libnodavevalue = new PLCTag(tag);
            tagedt.ShowDialog();
            return(tagedt._libnodavevalue);
        }
Exemplo n.º 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);
        }