Пример #1
0
 public CylinderParameter(CylinderDelay cylinderDelay) : this()
 {
     m_cylinderDelay     = cylinderDelay;
     txtOriginDelay.Text = (m_cylinderDelay.OriginTime / 1000.00).ToString("0.00");
     txtMoveDelay.Text   = (m_cylinderDelay.MoveTime / 1000.00).ToString("0.00");
     txtAlarmDelay.Text  = (m_cylinderDelay.AlarmTime / 1000.00).ToString("0.00");
 }
Пример #2
0
        public static CylinderDelay Parse(string str)
        {
            string[] strValue      = str.Split(',');
            var      cylinderDelay = new CylinderDelay();

            cylinderDelay.OriginTime = int.Parse(strValue[0]);
            cylinderDelay.MoveTime   = int.Parse(strValue[1]);
            cylinderDelay.AlarmTime  = int.Parse(strValue[2]);
            return(cylinderDelay);
        }