示例#1
0
 private void insrt_data()
 {
     personal_Info     = new Personal_info(txt_fname.Text, txt_lname.Text, txt_email.Text, txt_city.Text, txt_address.Text, txt_country.Text);
     academic_Info     = new Academic_info(Convert.ToDecimal(txt_cgpa.Text), txt_uni.Text, txt_degree.Text, txt_program.Text);
     professional_Info = new Professional_info(Int32.Parse(txt_sal.Text), txt_com.Text, txt_work_exp.Text, txt_desig.Text);
     user = new User(personal_Info, academic_Info, professional_Info);
     users.Add(user);
 }
示例#2
0
 public User(Personal_info personal_info, Academic_info academic_info, Professional_info professional_info)
 {
     _personal_info     = personal_info;
     _academic_info     = academic_info;
     _professional_info = professional_info;
 }