/// <summary> /// 获取属性值 /// </summary> /// <param name="name">控件名称</param> /// <param name="propertyName">属性名称</param> /// <returns>属性值</returns> public String GetProperty(String name, String propertyName) { if (m_xml != null) { ControlA control = m_xml.FindControl(name); if (control != null) { String value = null, type = null; control.GetProperty(propertyName, ref value, ref type); return(value); } } return(null); }
/// <summary> /// 刷新界面 /// </summary> /// <param name="var">变量</param> /// <returns>状态</returns> private double INVALIDATE(CVariable var) { if (m_xml != null) { int pLen = var.m_parameters != null ? var.m_parameters.Length : 0; if (pLen == 0) { m_xml.Native.Invalidate(); } else { ControlA control = m_xml.FindControl(m_indicator.GetText(var.m_parameters[0])); if (control != null) { control.Invalidate(); } } } return(0); }