/// <summary> /// General constructor /// given a number, the question phrase and a short notice /// mode is true if something contains equations /// </summary> /// <param name="numero">number</param> /// <param name="q">question</param> /// <param name="note">notice</param> /// <param name="mode">mode</param> /// <param name="don">delimiter on</param> /// <param name="doff">delimiter off</param> /// <param name="a">answer</param> public Exercice(uint numero, string q, string note, bool mode, char don, char doff, Answer a) { this.Set(idName, numero); this.Set(questionName, q); this.Set(indiceName, note); this.Set(answerName, a); this.Set(texModeName, mode); this.Set(leftDelimiterName, don); this.Set(rightDelimiterName, doff); }
/// <summary> /// constructor for tex mode /// given a number, the question phrase and a short notice /// </summary> /// <param name="numero">number</param> /// <param name="q">question</param> /// <param name="note">notice</param> /// <param name="mode">tex mode switch</param> /// <param name="a">answer</param> public Exercice(uint numero, string q, string note, bool mode, Answer a) : this(numero, q, note, mode, '{', '}', a) { }