Beispiel #1
0
 private void FillFields()
 {
     try
     {
         NpgsqlDataReader dataReader = PgSql.SelectFromWhere2("*", "pare", "client1_id", id1.ToString(), "client2_id", id2.ToString());
         dataReader.Read();
         numClientID.Text  = dataReader[0].ToString();
         numClient2Id.Text = dataReader[1].ToString();
         dataReader.Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
         this.Close();
     }
 }