Exemplo n.º 1
0
 /**
  * Method shows timetable if method calling passes true
  *
  * @return information on opening the schedule
  */
 public void shouldOpenSchedule(bool shouldOpen)
 {
     if (shouldOpen)
     {
         SingleScheduleDayWindow dayOfBookedAppointment = new SingleScheduleDayWindow(parent, DateHelper.getDateInMySqlFormat(this.date));
         dayOfBookedAppointment.Show();
     }
 }
Exemplo n.º 2
0
        public dayOfaWeekBox(DateTime date)
        {
            InitializeComponent();

            this.date = date;
            // this line need to be here, so the morning and evening appointments on schedule panel counts correctly
            this.singleDay           = new SingleScheduleDayWindow(this, date.ToString("yyyy-MM-dd"));
            this.staffMembersPerDate = this.singleDay.getAllTheStaffMembersPerDate();
            dayNumber.Text           = date.Day.ToString();

            if (this.morningAppointments + this.afternoonAppointments == 0)
            {
                this.BackColor = System.Drawing.Color.Silver;
            }
            if (this.date.Date < DateTime.Today.Date)
            {
                this.BackColor = System.Drawing.Color.Silver;
            }
        }