Пример #1
0
        public StartGooglePlusGUI()
        {
            GooglePlusGUI gui = new GooglePlusGUI();

            Circle circle = new Circle();
            circle.attach(gui);

            Contact c1 = new Contact("CHenry");
            c1.attach(gui);
            circle.addContact(c1);
            c1.setName("Henry");
        }
Пример #2
0
 public void removeContact(Contact contact)
 {
     contacts.Remove(contact);
 }
Пример #3
0
 public void addContact(Contact contact)
 {
     contacts.Add(contact);
 }