public void PutInMemberCardGodFather(Member godFather)
 {
     this.workSpaceTableLayoutPanel.Controls.Remove(memberCard);
     memberCard = new MemberCard();
     memberCard.PutMember(godFather);
     this.workSpaceTableLayoutPanel.Controls.Add(memberCard, 2, 2);
 }
 private void GetMemberClick(object sender, EventArgs e)
 {
     this.workSpaceTableLayoutPanel.Controls.Remove(memberCard);
     memberCard = new MemberCard();
     Member member = new Member();
     member = Program.Data.GetMICMember(Int32.Parse(memberList[Const.MEMBERS].SelectedItem.ToString().Split(' ')[0]));
     memberCard.PutMember(member);
     this.workSpaceTableLayoutPanel.Controls.Add(memberCard, 2, 2);
 }
Beispiel #3
0
 private void GetMemberClick(object sender, EventArgs e)
 {
     if ( memberList[Const.MEMBERS].SelectedItem != null ) {
         Member member = new Member();
         member = Program.Data.GetMICMember(Int32.Parse(memberList[Const.MEMBERS].SelectedItem.ToString().Split(' ')[0]));
         int index = this.workSpaceTableLayoutPanel.Controls.IndexOf(memberCard);
         if ( index == -1 ) {
             memberCard = new MemberCard();
             memberCard.PutMember(member);
             this.workSpaceTableLayoutPanel.Controls.Add(memberCard, 2, 2);
         } else {
             ( (MemberCard)this.workSpaceTableLayoutPanel.Controls[index] ).ChangeMember(member);
         }
     }
 }