Exemple #1
0
        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);
            }
        }
Exemple #2
0
 public string ChannelFunctions(IChannelFunctions name, string status, string channel)
 {
     return(ChannelFunctions(name.ToString().ToLower(), status, channel));
 }
Exemple #3
0
 public string ChannelFunctions(IChannelFunctions name, string status, string channel)
 {
     return ChannelFunctions(name.ToString().ToLower(), status, channel);
 }
Exemple #4
0
        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;
            }
        }