コード例 #1
0
        /// <summary>
        /// Only way of resetting main scheduled list and variables to be able to generate a new set of shifts based on rules.
        /// </summary>
        private void Clear()
        {
            myEmpContainer = null;
            finalScheduled.Clear();
            morningEmpNum = -1;
            //intPrevDayMorningEmpNum = -1; //Do not reset these, they can be used to continue sequence correctly when list resets
            //intPrevDayAfternoonEmpNum = -1;
            totalShifts = 0;
            currentPos  = 0;

            Init();
        }
コード例 #2
0
 /// <summary>
 /// Private class initialization function for Scheduler class
 /// Sets up Employee Container and final schedule list
 /// </summary>
 protected void Init()
 {
     myEmpContainer = new EmployeeContainer();
     finalScheduled = new List <ScheduleDay>();
 }