private void FormMyAccount_Load(object sender, EventArgs e) { if (UserInfo.instance.Type == UserType.Doctor) { RadioDoc_Click(this, new EventArgs()); txtSpecialize.Text = UserInfo.instance.DocSpecialization; txthrs.Text = UserInfo.instance.hrworks; txtClinic.Text = UserInfo.instance.clinic_location; } else { RadioUser_Click(this, new EventArgs()); } txtFullName.Text = UserInfo.instance.Name; txtPhoneNum.Text = UserInfo.instance.Phone; Birthdate.Value = UserInfo.instance.Date; Birthdate.Refresh(); if (UserInfo.instance.Gender == "ذكر") { radioMan.Checked = true; radioWoman.Checked = false; } else { radioWoman.Checked = true; radioMan.Checked = false; } }