Beispiel #1
0
        /// <summary>
        /// Changes the Salary of the User
        /// </summary>
        /// <param name="_newSalaryType"></param>
        public void ChangeSalaryType(SalaryType _newSalaryType)
        {
            // set the new value
            SalaryType = _newSalaryType;

            // recalculate the shifts
            ShiftScheduler.Calculate();
        }
Beispiel #2
0
        /// <summary>
        /// Changes the max revenue for this user
        /// </summary>
        /// <param name="_newMaxRevenue"></param>
        public void ChangeMaxRevenue(float _newMaxRevenue)
        {
            // set the new value
            MaxRevenue = _newMaxRevenue;

            // recalculate the shifts
            ShiftScheduler.Calculate();
        }
Beispiel #3
0
        private void AutoLoad()
        {
            string fullPath = System.IO.Path.GetFullPath(saveFile);

            if (File.Exists(fullPath))
            {
                using (Stream stream = File.Open(fullPath, FileMode.Open))
                {
                    ShiftScheduler.Load(stream);
                }
            }
        }