Ejemplo n.º 1
0
        private void metroTile2_Click(object sender, EventArgs e)
        {
            Edit_personal_info q = new Edit_personal_info();

            q.Show();
            q.txt_studno.Text      = this.txt_no.Text;
            q.txt_fname.Text       = txt_fname.Text.Split(' ').GetValue(0).ToString();
            q.txt_mname.Text       = txt_fname.Text.Split(' ').GetValue(1).ToString();
            q.txt_lname.Text       = txt_fname.Text.Split(' ').GetValue(2).ToString();
            q.metroDateTime1.Value = Convert.ToDateTime(txt_bday.Text);
            q.txt_nic.Text         = txt_nic.Text;
            q.txt_desig.DataSource = General_methods.fill_designations_combobox();
            q.txt_desig.Text       = txt_desig.Text;
            q.batch    = txt_batchno.Text;
            q.prev_nic = txt_nic.Text;
            if (txt_gender.Text == "male")
            {
                q.metroRadioButton1.Checked = true;
            }
            else
            {
                q.metroRadioButton2.Checked = true;
            }
            q.metroTile1.Click += HandleCustomEvent1;
        }
 private void Form1_Load(object sender, EventArgs e)
 {
     txt_desig.DataSource = General_methods.fill_designations_combobox();
     txt_desig.Text       = "";
 }