示例#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);
                }
            }
        }
示例#2
0
 private void _dataTimer_Tick(object sender, EventArgs e)
 {
     var dataService = ServiceLocator.Current.GetInstance<IDataService>();
     Model = dataService.GetCup(_cupId);
 }
示例#3
0
文件: Match.cs 项目: oskar/dlcup
        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);
                }
            }
        }