コード例 #1
0
 public bool Equals(PlayAreaViewModel obj)
 {
     if (obj == null)
     {
         return(false);
     }
     return(obj.Model.Id == Model.Id);
 }
コード例 #2
0
        internal PlayAreaViewModel GetPlayAreaViewModel(Model.Models.Tournament tournament, Model.Models.PlayArea playArea)
        {
            PlayAreaViewModel playAreaViewModel;

            if (!_playAreas.TryGetValue(playArea.Id.Value, out playAreaViewModel))
            {
                playAreaViewModel = new PlayAreaViewModel(tournament, playArea);
                _playAreas.Add(playArea.Id.Value, playAreaViewModel);
            }
            return(playAreaViewModel);
        }