Exemplo n.º 1
0
        private void UpdateForm_Load(object sender, EventArgs e)
        {
            cboTeam.DataSource    = blTeam.GetAll();
            cboTeam.DisplayMember = "TeamName";
            cboTeam.ValueMember   = "Id";

            Member member = blMember.Get(Id);

            txtId.Text          = member.Id.ToString();
            txtMemberName.Text  = member.MemberName;
            txtPhoneNumber.Text = member.PhoneNumber;
            txtStudentCode.Text = member.StudentCode;
        }
Exemplo n.º 2
0
 private void InsertFrom_Load(object sender, EventArgs e)
 {
     cboTeam.DataSource    = blTeam.GetAll();
     cboTeam.ValueMember   = "Id";
     cboTeam.DisplayMember = "TeamName";
 }