Beispiel #1
0
        private void FixupCup(Cup previousValue)
        {
            if (previousValue != null && previousValue.Matches.Contains(this))
            {
                previousValue.Matches.Remove(this);
            }

            if (Cup != null)
            {
                if (!Cup.Matches.Contains(this))
                {
                    Cup.Matches.Add(this);
                }
            }
        }
Beispiel #2
0
 private void _dataTimer_Tick(object sender, EventArgs e)
 {
     var dataService = ServiceLocator.Current.GetInstance<IDataService>();
     Model = dataService.GetCup(_cupId);
 }
Beispiel #3
0
        private void FixupCup(Cup previousValue)
        {
            if (previousValue != null && previousValue.Matches.Contains(this))
            {
                previousValue.Matches.Remove(this);
            }

            if (Cup != null)
            {
                if (!Cup.Matches.Contains(this))
                {
                    Cup.Matches.Add(this);
                }
            }
        }