예제 #1
0
        public ContactPanel(Contact[] value)
        {
            _count = value.Length;

            InitializeComponent();

            Value = value;
        }
예제 #2
0
 public ContactParam(Contact[] contacts, CVLookUp cv)
     : base(null)
 {
     _cv = cv;
     _count = contacts.Length;
     Value = contacts;
     Default = contacts;
 }
예제 #3
0
 public bool AddContactName(int id, string name)
 {
     Contact contact;
     if (!_contactMap.ContainsKey(id)){
         contact = new Contact(id){Name = name};
         _contactMap.Add(id, contact);
         return true;
     }
     contact = _contactMap[id];
     if (contact.Name != null){
         return false;
     }
     contact.Name = name;
     return true;
 }
예제 #4
0
 public bool AddContactEmail(int id, string email)
 {
     Contact contact;
     if (!_contactMap.ContainsKey(id)){
         contact = new Contact(id){Email = email};
         _contactMap.Add(id, contact);
         return true;
     }
     contact = _contactMap[id];
     if (contact.Email != null){
         return false;
     }
     contact.Email = email;
     return true;
 }
예제 #5
0
 public bool AddContactAffiliation(int id, string affiliation)
 {
     Contact contact;
     if (!_contactMap.ContainsKey(id)){
         contact = new Contact(id){Affiliation = affiliation};
         _contactMap.Add(id, contact);
         return true;
     }
     contact = _contactMap[id];
     if (contact.Affiliation != null){
         return false;
     }
     contact.Affiliation = affiliation;
     return true;
 }
예제 #6
0
 public override void Clear()
 {
     Value = new Contact[_count];
 }