private void btnSearchMember_Click(object sender, EventArgs e) { try { subscriber = subscriberBLL.Get(int.Parse(txtMemberID.Text)); txtFirstName.Text = subscriber.Name; txtLastName.Text = subscriber.LastName; txtFullAddress.Text = subscriber.Address; dtPickerBirthdate.Value = subscriber.Birthday; if (subscriber.Gender == 'M') { radioMale.Checked = true; } else if (subscriber.Gender == 'F') { radioFemale.Checked = true; } txtPersonalNumber.Text = subscriber.PersonalNo; txtEmail.Text = subscriber.Email; txtPhoneNumber.Text = subscriber.PhoneNo; bill = billBLL.Get(int.Parse(txtMemberID.Text)); txtFromDate.Text = subscriber.InsDate.ToShortDateString(); txtTillDate.Text = subscriber.ExpirationDate.ToShortDateString(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void InitData() { int id = MainForm.cID; //int id = ComputerStart.cID; var result = billBLL.Get(id); rdvBill.DataSource = result; }