コード例 #1
0
            public void AddMark(StipendValue value, int mark)
            {
                int oldMark;

                if (!mValues.TryGetValue(value, out oldMark))
                {
                    oldMark = 0;
                }

                oldMark += mark;

                mValues[value] = oldMark;
            }
コード例 #2
0
        public void AddMark(StipendValue value, int mark)
        {
            StipendCalculation day;

            if (!mStipend.TryGetValue(SimClock.CurrentDayOfWeek, out day))
            {
                day = new StipendCalculation();
                mStipend.Add(SimClock.CurrentDayOfWeek, day);
            }

            day.AddMark(value, mark);

            OwnerDescription.CareerManager.UpdateCareerUI();
        }
コード例 #3
0
        public static void AddMarks(List <Homemaker> careers, StipendValue value, int mark)
        {
            if (careers == null)
            {
                return;
            }

            foreach (Homemaker career in careers)
            {
                if (career == null)
                {
                    continue;
                }

                career.AddMark(value, mark);
            }
        }