private void UpdateHoleStat(SimpleEditableHoleStat source, HoleStat target)
 {
     target.HoleId = source.HoleId;
     target.Score  = source.Score;
     target.FwyHit = source.FwyHit;
     target.Putts  = source.Putts;
     target.Gir    = source.Gir;
 }
        private void CopyHoleStat(HoleStat source, SimpleEditableHoleStat target)
        {
            target.RoundId = source.RoundId;
            target.HoleId  = source.HoleId;

            if (EditMode)
            {
                target.Score  = source.Score;
                target.FwyHit = source.FwyHit;
                target.Putts  = source.Putts;
                target.Gir    = source.Gir;
            }
        }
        internal void SetHoleStat(HoleStat holeStat)
        {
            _editingHoleStat = holeStat;
            if (HoleStat != null)
            {
                HoleStat.ErrorsChanged -= RaiseCanExecuteChanged;
            }

            HoleStat = new SimpleEditableHoleStat();

            HoleStat.ErrorsChanged += RaiseCanExecuteChanged;
            CopyHoleStat(holeStat, HoleStat);
        }