public VacuoParameter(VacuoDelay vacuoDelay) : this()
 {
     m_vacuoDelay        = vacuoDelay;
     txtInhaleDelay.Text = (m_vacuoDelay.InhaleTime / 1000.00).ToString("0.00");
     txtBrokenDelay.Text = (m_vacuoDelay.BrokenTime / 1000.00).ToString("0.00");
     txtAlarmDelay.Text  = (m_vacuoDelay.AlarmTime / 1000.00).ToString("0.00");
 }
Example #2
0
        public static VacuoDelay Parse(string str)
        {
            string[] strValue   = str.Split(',');
            var      vacuoDelay = new VacuoDelay();

            vacuoDelay.InhaleTime = int.Parse(strValue[0]);
            vacuoDelay.BrokenTime = int.Parse(strValue[1]);
            vacuoDelay.AlarmTime  = int.Parse(strValue[2]);
            return(vacuoDelay);
        }