Commit 736079a0 by wangonghui

修改bug

parent dedf11ed
......@@ -155,6 +155,8 @@ namespace VIZ.TVP.CBA.Module
settings.NullValueHandling = NullValueHandling.Ignore;
dayschedules = JsonConvert.DeserializeObject<Dayschedules>(str, settings);
dayschedules.dayschedule= dayschedules.dayschedule.OrderBy(a=>a.time).ToList();
});
return dayschedules;
......
......@@ -166,6 +166,8 @@ namespace VIZ.TVP.CBA.Module
MatchData.Add(dayschedule);
}
flag = true;
}
catch(Exception ex)
......
......@@ -277,45 +277,6 @@ namespace VIZ.TVP.CBA.Module
if (Convert.ToInt32(MatchStatsId) == 7)
{
PlayerComModels = new ObservableCollection<PlayerComModel>();
//{
// new PlayerComModel()
// {
// //TechStats=TechStats.Goal
// TechStatsName="得分"
// },
// new PlayerComModel()
// {
// // TechStats=TechStats.Rebounds
// TechStatsName="篮板"
// },
// new PlayerComModel()
// {
// // TechStats=TechStats.Assists
// TechStatsName="助攻"
// },
// new PlayerComModel()
// {
// //TechStats=TechStats.Blocks
// TechStatsName="盖帽"
// },
// new PlayerComModel()
// {
// //TechStats=TechStats.Steals
// TechStatsName="抢断"
// },
// new PlayerComModel()
// {
// //TechStats=TechStats.ShootingGoalP
// TechStatsName="投篮命中率"
// },
// new PlayerComModel()
// {
// //TechStats=TechStats.ThreeShootingGoalP
// TechStatsName="三分命中率"
// }
//};
PlayerComModel PlayGoal = new PlayerComModel();
PlayGoal.TechStatsName = "得分";
......@@ -351,6 +312,9 @@ namespace VIZ.TVP.CBA.Module
ThreeShootingGoalP.TechStatsName = "三分命中率";
ThreeShootingGoalP.PropertyChanged += OnModelChanged;
playerComModels.Add(ThreeShootingGoalP);
}
else if (Convert.ToInt32(MatchStatsId) == 6)
......@@ -385,40 +349,6 @@ namespace VIZ.TVP.CBA.Module
ShootingGoalP.TechStatsName = "投篮命中率";
ShootingGoalP.PropertyChanged += OnModelChanged;
playerComModels.Add(ShootingGoalP);
//{
// new PlayerComModel()
// {
// //TechStats=TechStats.Goal
// TechStatsName="得分"
// },
// new PlayerComModel()
// {
// // TechStats=TechStats.Rebounds
// TechStatsName="篮板"
// },
// new PlayerComModel()
// {
// // TechStats=TechStats.Assists
// TechStatsName="助攻"
// },
// new PlayerComModel()
// {
// //TechStats=TechStats.Blocks
// TechStatsName="盖帽"
// },
// new PlayerComModel()
// {
// //TechStats=TechStats.Steals
// TechStatsName="抢断"
// },
// new PlayerComModel()
// {
// //TechStats=TechStats.ShootingGoalP
// TechStatsName="投篮命中率"
// }
//};
}
else if (Convert.ToInt32(MatchStatsId) == 5)
......@@ -451,35 +381,6 @@ namespace VIZ.TVP.CBA.Module
Steals.PropertyChanged += OnModelChanged;
playerComModels.Add(Steals);
//{
// new PlayerComModel()
// {
// //TechStats=TechStats.Goal
// TechStatsName="得分"
// },
// new PlayerComModel()
// {
// // TechStats=TechStats.Rebounds
// TechStatsName="篮板"
// },
// new PlayerComModel()
// {
// // TechStats=TechStats.Assists
// TechStatsName="助攻"
// },
// new PlayerComModel()
// {
// //TechStats=TechStats.Blocks
// TechStatsName="盖帽"
// },
// new PlayerComModel()
// {
// //TechStats=TechStats.Steals
// TechStatsName="抢断"
// }
//};
}
......@@ -633,7 +534,15 @@ namespace VIZ.TVP.CBA.Module
if (APlayer == null) return;
APlayerLogo = new BitmapImage(new Uri(string.Format("{0}Image\\Teamlogo\\{1}.png", baesePath, AName)));
if(AName== "北京控股666")
{
APlayerLogo = new BitmapImage(new Uri(string.Format("{0}Image\\Teamlogo\\{1}.png", baesePath, "北京控股")));
}
else
{
APlayerLogo = new BitmapImage(new Uri(string.Format("{0}Image\\Teamlogo\\{1}.png", baesePath, AName)));
}
if (VNameNums.ContainsKey(APlayer))
{
ANums = VNameNums[APlayer];
......@@ -663,13 +572,13 @@ namespace VIZ.TVP.CBA.Module
hPlayer = value;
this.RaisePropertyChanged(nameof(HPlayer));
if (HPlayer == null) return;
if (AName == "北京控股666")
if (HName == "北京控股666")
{
HPlayerLogo = new BitmapImage(new Uri(string.Format("{0}Image\\Teamlogo\\{1}.png", baesePath, "北京控股")));
}
else
{
HPlayerLogo = new BitmapImage(new Uri(string.Format("{0}Image\\Teamlogo\\{1}.png", baesePath, AName)));
HPlayerLogo = new BitmapImage(new Uri(string.Format("{0}Image\\Teamlogo\\{1}.png", baesePath, HName)));
}
if (HNameNums.ContainsKey(HPlayer))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment