public void recupererQuestion() { int nb = 0; SQLiteConnection sqlconnection = new SQLiteConnection("Data Source= MCDs.db"); sqlconnection.Open(); string CommandText = "SELECT listQuestion FROM questions WHERE idQuestion = '" + Q1.ToString() + "'"; SQLiteCommand cmd = new SQLiteCommand(CommandText, sqlconnection); SQLiteDataReader sqldr = cmd.ExecuteReader(); while (sqldr.Read()) { // this.Rep.Add(); nb++; } nb = 0; this.R1 = this.Rep[0]; this.R2 = this.Rep[1]; this.R3 = this.Rep[2]; this.R4 = this.Rep[3]; }
/// <summary> /// Converts the Five-Number Summary to a string /// </summary> /// <returns> /// A string in the form of "[Min Q1 Med Q3 Max]", using values from /// the summary. /// </returns> public override string ToString() { return("[" + Min.ToString() + " " + Q1.ToString() + " " + Med.ToString() + " " + Q3.ToString() + " " + Max.ToString() + "]"); }
public override string ToString() { return(string.Format("{0},{1},{2}", Q1.ToString("G3"), W1.ToString("G3"), W2.ToString("G3"))); }