private AllowInfo(string channel, string item, int interval, ChannelStyle style) { Channel = channel; Item = item; Interval = interval; Style = style; }
public ChannelInfo(ServerInfo server, ChannelStyle style, int intervalSeconds, string channel, string item, string value) { Server = server; Style = style; Interval = TimeSpan.FromSeconds(intervalSeconds); Channel = channel; Item = item; Value = value; m_UpdateTime = new TimeSpan(DateTime.Now.Ticks); _InitNotifyBox(); m_Timer = new Timer(CHECKINTERVAL); m_Timer.Elapsed += Timer_Elapsed; m_Timer.Start(); }