示例#1
0
        public void Fill(TrainingDayDTO day, UserDTO user)
        {
            ReadOnly = user != null && user.Id != UserContext.CurrentProfile.Id;
            if (!ReadOnly)
            {
                day = day.Clone();
            }
            usrAddTrainingDay1.Fill(day, user);

            updateReadOnlyButtons();
        }