SqlCommand cmd = new SqlCommand(sql, con);
SqlDataAdapter dr = cmd.ExecuteReader();    //这里有错误
            
if (dr.Read())  //这里有错误   this.DialogResult = DialogResult.OK;else
{
   MessageBox.Show("你输入的用户名和密码有误", "错误");
   textBox2.Text = " ";}这里有两处错误,请问怎么改