コード例 #1
0
ファイル: StartGooglePlusGUI.cs プロジェクト: igmar/HUSACCT
        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
ファイル: Circle.cs プロジェクト: Mittchel/benchmark
 public void removeContact(Contact contact)
 {
     contacts.Remove(contact);
 }
コード例 #3
0
ファイル: Circle.cs プロジェクト: Mittchel/benchmark
 public void addContact(Contact contact)
 {
     contacts.Add(contact);
 }