public void AddMark(StipendValue value, int mark) { int oldMark; if (!mValues.TryGetValue(value, out oldMark)) { oldMark = 0; } oldMark += mark; mValues[value] = oldMark; }
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(); }
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); } }