public bool FSelect(IChannelFunctions Name, string Channel) { lock (WriteLock) { if (ChannelFunction.ContainsKey(Channel.ToLower())) { foreach (var comma in ChannelFunction[Channel.ToLower()].Split(SchumixBase.Comma)) { if (comma.IsNullOrEmpty()) { continue; } string[] point = comma.Split(SchumixBase.Colon); if (point[0] == Name.ToString().ToLower()) { return(point[1] == SchumixBase.On); } } } return(false); } }
public string ChannelFunctions(IChannelFunctions name, string status, string channel) { return(ChannelFunctions(name.ToString().ToLower(), status, channel)); }
public string ChannelFunctions(IChannelFunctions name, string status, string channel) { return ChannelFunctions(name.ToString().ToLower(), status, channel); }
public bool FSelect(IChannelFunctions Name, string Channel) { lock(WriteLock) { if(ChannelFunction.ContainsKey(Channel.ToLower())) { foreach(var comma in ChannelFunction[Channel.ToLower()].Split(SchumixBase.Comma)) { if(comma.IsNullOrEmpty()) continue; string[] point = comma.Split(SchumixBase.Colon); if(point[0] == Name.ToString().ToLower()) return point[1] == SchumixBase.On; } } return false; } }