コード例 #1
0
 public void print(MyPrinter myPrinter)
 {
     myPrinter.PrintData(lessonID + " ");
     myPrinter.PrintNewLine();
     myPrinter.PrintData(lessonName);
     myPrinter.PrintNewLine();
     myPrinter.PrintData(lessonHoursLong + " ");
 }
コード例 #2
0
        public void print(MyPrinter myPrinter)
        {
            myPrinter.PrintData("PersonData");
            myPrinter.PrintNewLine();
            myPrinter.PrintData(id + " ");
            myPrinter.PrintNewLine();

            myPrinter.PrintData(this.name + " " + this.surname);
            myPrinter.PrintNewLine();
            myPrinter.PrintData(this.address);
            myPrinter.PrintNewLine();
            myPrinter.PrintData(this.phone);
        }