Exemple #1
0
        private void ebutton_Click(object sender, EventArgs e)
        {
            sqlConnection.Open();
            String         sqlcmdstr = "SELECT * FROM [dba].[eigenvaluetable] where ID = '" + sensordata[0] + "'";
            SqlCommand     sqlcmd    = new SqlCommand(sqlcmdstr, sqlConnection);
            SqlDataAdapter sda       = new SqlDataAdapter(sqlcmd);
            DataSet        ds        = new DataSet();

            sda.Fill(ds);
            eigenvalueform ef = new eigenvalueform(ds);

            ef.ShowDialog();
            sqlConnection.Close();
        }
 private void ebutton_Click(object sender, EventArgs e)
 {
     sqlConnection.Open();
     String sqlcmdstr = "SELECT * FROM [dba].[eigenvaluetable] where ID = '" + sensordata[0] + "'";
     SqlCommand sqlcmd = new SqlCommand(sqlcmdstr, sqlConnection);
     SqlDataAdapter sda = new SqlDataAdapter(sqlcmd);
     DataSet ds = new DataSet();
     sda.Fill(ds);
     eigenvalueform ef = new eigenvalueform(ds);
     ef.ShowDialog();
     sqlConnection.Close();
 }