コード例 #1
0
ファイル: nanny.cs プロジェクト: code613/cSharpProjectY2S1
 public Nanny()
 {
     ImgPath   = @"./ resources / badCaretakerIMG.jpg";
     Birthday  = DateTime.Now.AddYears(-30);
     TimeTable = new DayOfWork[6];
     for (int i = 0; i < 6; i++)
     {
         TimeTable[i] = new DayOfWork();
     }
     WorkWeek = new bool[6];
 }
コード例 #2
0
 public Mother()
 {
     ImgPath  = @"./ resources / badCaretakerIMG.jpg";
     Birthday = DateTime.Now.AddYears(-30);
     serviseNeededTimeTable = new DayOfWork[6];
     ID = "33";
     for (int i = 0; i < 6; i++)
     {
         serviseNeededTimeTable[i] = new DayOfWork();
     }
     daysNeedNanny = new bool[6];
 }