예제 #1
0
        /// <summary>
        /// 开始秒表
        /// </summary>
        /// <param name="var">变量</param>
        /// <returns>状态</returns>
        private double STARTTIMER(CVariable var)
        {
            FCView control = m_xml.findControl(m_indicator.getText(var.m_parameters[0]));

            control.startTimer((int)m_indicator.getValue(var.m_parameters[1]), (int)m_indicator.getValue(var.m_parameters[2]));
            return(0);
        }
예제 #2
0
 /// <summary>
 /// 获取属性值
 /// </summary>
 /// <param name="name">控件名称</param>
 /// <param name="propertyName">属性名称</param>
 /// <returns>属性值</returns>
 public String getProperty(String name, String propertyName)
 {
     if (m_xml != null)
     {
         FCView control = m_xml.findControl(name);
         if (control != null)
         {
             String value = null, type = null;
             control.getProperty(propertyName, ref value, ref type);
             return(value);
         }
     }
     return(null);
 }
예제 #3
0
 /// <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
         {
             FCView control = m_xml.findControl(m_indicator.getText(var.m_parameters[0]));
             if (control != null)
             {
                 control.invalidate();
             }
         }
     }
     return(0);
 }