Example #1
0
        public void EditDependentForm(DependentUser du)
        {
            try
            {
                Dependent de = new Dependent(du.Type);
                de.TDID.Text   = du.Id;
                de.TDName.Text = du.Name;

                de.TDREID.Text = du.RelatedEmployee;
                de.TDAge.Text  = du.Age.ToString();
                de.Show();
                de.TypeSelect();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Example #2
0
        public void EditDependentForm(DependentUser du)
        {
            try
            {
                Dependent de = new Dependent(du.Type);
                de.TDID.Text   = du.Id;
                de.TDName.Text = du.Name;

                de.TDREID.Text           = du.RelatedEmployee;
                de.TDOB.Value            = du.DOB1;
                de.Validity.SelectedItem = du.Status.ToString();
                de.Show();
                de.TypeSelect();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }