示例#1
0
 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();
     }));
 }
示例#2
0
        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.";
        }
示例#3
0
        public string[] ListToPrint()
        {
            var rad = new string[] { TeacherID.ToString(), Name, Email, PersonNummer, Salary.ToString() };

            return(rad);
        }