コード例 #1
0
        public AddNextOfKinFormBase(NextOfKinAdd doctorAdd)
        {
            _nextOfKinAdd = doctorAdd;
            _nextOfKinAdd.cmbNextOfKinName.SelectedIndex = -1;
            _nextOfKinAdd.txtNextOfKinName.Text          = string.Empty;


            _nextOfKinAdd.txtRelationship.Text = string.Empty;

            _nextOfKinAdd.ep.Clear();
        }
コード例 #2
0
        public AssignNextOfKinForm(NextOfKinAdd da) : base(da)
        {
            _nextOfKinAdd.cmbNextOfKinName.Visible = true;
            _nextOfKinAdd.txtNextOfKinName.Visible = false;

            _nextOfKinAdd.cmbNextOfKinName.Focus();



            _nextOfKinAdd.btnAdd.Text = "Assign";
        }
コード例 #3
0
        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();
            }
        }
コード例 #4
0
 public AddNextOfKinBase(NextOfKinAdd doctorAddEdit)
 {
     _doctorAddEdit = doctorAddEdit;
     AddBindingToDoctor();
 }
コード例 #5
0
 public AddNextOfKinForm(NextOfKinAdd nok) : base(nok)
 {
     _nextOfKinAdd.cmbNextOfKinName.Visible = false;
     _nextOfKinAdd.txtNextOfKinName.Visible = true;
     _nextOfKinAdd.btnAdd.Text = "Add";
 }
コード例 #6
0
 public AddNewNextOfKin(NextOfKinAdd doctorAddEdit) : base(doctorAddEdit)
 {
     _doctorAddEdit.Text           = "Add Doctor to List";
     _doctorAddEdit.btnCommit.Text = "Add Doctor";
 }