public override string ToString() { return(Utils.WriteXMLString((ref XmlWriter writer) => { writer.WriteStartElement(nameof(Subject)); writer.WriteAttributeString(nameof(ID), ID.ToString()); writer.WriteAttributeString(nameof(TeacherID), TeacherID.ToString()); writer.WriteAttributeString(nameof(SubjectName), SubjectName); writer.WriteEndElement(); })); }
private void NewLessonWindow_Load(object sender, EventArgs e) { this.lblTeacher.Text = TeacherID.ToString(); this.lblGrade.Text = newLesson.GradeNo.ToString() + newLesson.GradeSection; this.lblSubject.Text = newLesson.Subject; this.lblDate.Text = newLesson.Date.ToShortDateString(); BuildGridJournalNewLesson(); this.toolStripIsSaved.Text = "Saved."; }
public string[] ListToPrint() { var rad = new string[] { TeacherID.ToString(), Name, Email, PersonNummer, Salary.ToString() }; return(rad); }