private void EditMember_Load(object sender, EventArgs e) { MemberModel member = Managment.getInstance().geteditData(member_id); Txt_name.Text = member.Name; Txt_family.Text = member.Family; Txt_mobile.Text = member.Mobile; Txt_telephone.Text = member.Phone; if (member.Gender == 1) { OSSwitch_Gender.Value = true; } else { OSSwitch_Gender.Value = false; } Txt_Address.Text = member.Address; Label_melicode.Text = member.Melicode; }