Beispiel #1
0
        public void Remove(string tels)
        {
            MobileNoHandler h      = new MobileNoHandler(tels);
            string          nextNo = "";

            while ((nextNo = h.RemoveAndReturnFirst()).Length > 0)
            {
                if (m_Dic.ContainsKey(nextNo))
                {
                    m_Dic.Remove(nextNo);
                }
            }
        }
Beispiel #2
0
        public void Add(string tels, bool isConfirmed)
        {
            MobileNoHandler h      = new MobileNoHandler(tels);
            string          nextNo = "";

            while ((nextNo = h.RemoveAndReturnFirst()).Length > 0)
            {
                string err = Data_AppUserFile.Check_MobileNumber(nextNo, 0);
                if (err == null)
                {
                    if (!m_Dic.ContainsKey(nextNo))
                    {
                        m_Dic.Add(nextNo, new MobileNoWithState(nextNo, isConfirmed));
                    }
                    else
                    {
                        // already there
                        m_Dic[nextNo].IsConfirmed = isConfirmed;
                    }
                }
            }
        }