private void Serach_Click(object sender, EventArgs e)
 {
     try
     {
         p = new PartyMember();
         DataRow t = p.SerachMember(int.Parse(idNumberCode.Text));
         p = new PartyMember(t);
         numberCode.Text      = p.MemberCode.ToString();
         namePartyMember.Text = p.PartyName;
         name.Text            = p.FName;
         lastName.Text        = p.LName;
         brithDay.Text        = p.GetDobstring();
         expirence.Text       = p.Experience;
         education.Text       = p.Education;
         numberOfList.Text    = p.ListPlace.ToString();
     }
     catch
     {
         MessageBox.Show("Doesn't Exist such code in System");
     }
 }
Exemple #2
0
 /// <summary>
 /// The function search if the member exist or not.If the member exists ,his details are presented to the screen if not error messege
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void nbtn_Click(object sender, EventArgs e)
 {
     try
     {
         p = new PartyMember();
         DataRow t = p.SerachMember(int.Parse(memberCode1.Text));
         p                = new PartyMember(t);
         party.Text       = p.PartyName;
         memberName.Text  = p.FName;
         memberLName.Text = p.LName;
         dob.Text         = p.GetDobstring();
         expe.Text        = p.Experience;
         educ.Text        = p.Education;
         mode.Text        = p.Mode.ToString();
         listplace.Text   = p.ListPlace.ToString();
     }
     catch
     {
         MessageBox.Show("The member code not exist in the system");
     }
 }