Ejemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     ti = new timecalculate();
     ti.Show();/*
                * SqlConnection con = new SqlConnection(@"Data Source=DESKTOP-G7IISFU;Initial Catalog=Data;Integrated Security=True");
                * con.Open();
                * string query = "select * from t2 where ID = '" + label9.Text + "'";
                * SqlCommand cmd = new SqlCommand(query, con);
                * SqlDataReader sdr = cmd.ExecuteReader();
                * if (sdr.Read())
                * ti.label7.Text = (sdr["ID"].ToString());
                *
                *
                * con.Close();
                */
 }
 private void button1_Click(object sender, EventArgs e)
 {
     ti = new timecalculate();
     ti.Show();
 }