Exemplo n.º 1
0
        private void UpdateRound(SimpleEditableRound source, Round target)
        {
            target.CourseId = source.CourseId;
            target.PlayerId = source.PlayerId;

            target.TeeTime   = source.TeeTime;
            target.GroupSize = source.GroupSize;
            target.DrinkHole = source.DrinkHole;
            target.TreeHole  = source.TreeHole;
        }
Exemplo n.º 2
0
        internal void SetRound(Round round)
        {
            _editingingRound = round;

            if (Round != null)
            {
                Round.ErrorsChanged -= RaiseCanExecuteChanged;
            }

            Round = new SimpleEditableRound();

            Round.ErrorsChanged += RaiseCanExecuteChanged;
            CopyRound(round, Round);
        }
Exemplo n.º 3
0
        private void CopyRound(Round target, SimpleEditableRound source)
        {
            target.PlayerId = source.PlayerId;

            source.CourseId = target.CourseId;
            source.TeeTime  = DateTime.Now;
            //target.CourseId = source.CourseId;

            if (EditMode)
            {
                target.TeeTime   = source.TeeTime;
                target.GroupSize = source.GroupSize;
                target.DrinkHole = source.DrinkHole;
                target.TreeHole  = source.TreeHole;
            }
        }