Ejemplo n.º 1
0
        private void Button3_Click(object sender, EventArgs e)
        {
            ActiveForm.Hide();
            EditRunnerProfile reg = new EditRunnerProfile();

            reg.ShowDialog();
            Close();
        }
Ejemplo n.º 2
0
        private void Button2_Click(object sender, EventArgs e)
        {
            SqlConnection scc  = new SqlConnection();
            string        date = dateTimePicker1.Value.ToString("yyyy-MM-dd hh:mm:ss");

            scc.RegRunner(textBox1.Text, textBox4.Text, textBox5.Text, textBox2.Text, comboBox1.Text, date, comboBox2.Text);

            EditRunnerProfile erp = new EditRunnerProfile();

            erp.emai = textBox1.Text;

            int id = scc.runnerid(textBox1.Text);

            runnerid = id;

            Form5 f = new Form5();

            f.id1      = runnerid;
            f.runnerid = id;
            ActiveForm.Hide();
            f.ShowDialog();
            Close();
        }