public AddNextOfKinFormBase(NextOfKinAdd doctorAdd) { _nextOfKinAdd = doctorAdd; _nextOfKinAdd.cmbNextOfKinName.SelectedIndex = -1; _nextOfKinAdd.txtNextOfKinName.Text = string.Empty; _nextOfKinAdd.txtRelationship.Text = string.Empty; _nextOfKinAdd.ep.Clear(); }
public AssignNextOfKinForm(NextOfKinAdd da) : base(da) { _nextOfKinAdd.cmbNextOfKinName.Visible = true; _nextOfKinAdd.txtNextOfKinName.Visible = false; _nextOfKinAdd.cmbNextOfKinName.Focus(); _nextOfKinAdd.btnAdd.Text = "Assign"; }
private void addNextOfKin_Click(object sender, EventArgs e) { //AddNextOfKin ad = new AddNextOfKin(_student); NextOfKinAdd ad = new NextOfKinAdd(new AddNextOfKinToExistingStudent(_student)); ad.ShowDialog(); if (ad.DialogResult == DialogResult.OK) { DataBase db = new NextOfKinData(); _student.NextOfKin = db.GetList(_student.PersonId).ConvertAll(x => x as NextOfKin); PopulateNextOfKin(); } }
public AddNextOfKinBase(NextOfKinAdd doctorAddEdit) { _doctorAddEdit = doctorAddEdit; AddBindingToDoctor(); }
public AddNextOfKinForm(NextOfKinAdd nok) : base(nok) { _nextOfKinAdd.cmbNextOfKinName.Visible = false; _nextOfKinAdd.txtNextOfKinName.Visible = true; _nextOfKinAdd.btnAdd.Text = "Add"; }
public AddNewNextOfKin(NextOfKinAdd doctorAddEdit) : base(doctorAddEdit) { _doctorAddEdit.Text = "Add Doctor to List"; _doctorAddEdit.btnCommit.Text = "Add Doctor"; }