public void OrderStart(object info) { progressBar.Value = 0; lbTime.Text = "0 / 0 " + LangPack.GetSec(); if (info is SirenInfo) { SirenInfo sInfo = info as SirenInfo; progressBar.Maximum = sInfo.SirenTime; lbKind.Text = "[SIREN] " + sInfo.SirenName; } else { MsgInfo mInfo = info as MsgInfo; progressBar.Maximum = (mInfo.msgTime * int.Parse(mInfo.msgReptCtn)); lbKind.Text = LangPack.GetProgressMsg() + mInfo.msgName; } this.timer.Start(); }