Exemple #1
0
        // Is friend
        public bool IsContact(Person P )
        {
            string patter = P.Lastname + "#" + P.Firstname;

            foreach( string s in _friendList.Keys )
            {

                if( patter == s )
                {
                    return true;
                }
                foreach()
            }

        }
Exemple #2
0
 // Delete contact
 public void DeleteContact( Person P )
 {
     string patter = P.Lastname + "#" + P.Firstname;
     _friendList.Remove(patter);
 }
Exemple #3
0
 // Add contact
 public void AddContact( Person P )
 {
     string patter = P.Lastname + "#" + P.Firstname;
     _friendList.Add(patter, P);
 }