Esempio n. 1
0
        private void Edit_Profile_Load(object sender, EventArgs e)
        {
            DataShow ds = new DataShow();

            String[] result = ds.datashow(username);

            textBox_name.Text = result[0];
            textBox_username.Text = result[1];
            textBox_designation.Text = result[2];
            textBox_phonenumber.Text = result[3];
            textBox_email.Text = result[4];
            richTextBox_address.Text = result[5];
            String dateOfBirth=result[6];
            String[] token = dateOfBirth.Split();
            comboBox_date.Text = token[0];
            comboBox_month.Text = token[1];
            comboBox_year.Text = token[2];
            String gender=result[7];

            if (gender.Equals("Male"))
            {
                radioButton_male.Checked = true;
            }

            else
            {
                radioButton_female.Checked = true;
            }
        }
Esempio n. 2
0
        private void Profile_Load(object sender, EventArgs e)
        {
            DataShow ds= new DataShow();

            String[] result = ds.datashow(username);

            label_name.Text=result[0];
            label_username.Text = result[1];
            label_designation.Text = result[2];
            label_phoneno.Text = result[3];
            label_email.Text = result[4];
            label_address.Text=result[5];
            label_dob.Text = result[6];
            label_gender.Text=result[7];
        }