fyf 2 years ago
parent
commit
8637711ade
1 changed files with 9 additions and 9 deletions
  1. +9
    -9
      DataVAPI.Tools/IOT/ScreenMonitorModel.cs

+ 9
- 9
DataVAPI.Tools/IOT/ScreenMonitorModel.cs View File

@@ -160,7 +160,7 @@ namespace DataVAPI.Tool.IOT
public int Day { get; set; }
public int L_Day { get; set; }

private string B_Year_Str { get; set; }
private string B_YearStr { get; set; }
public ALYColor YearColor { get; set; }
private int _B_Year { get; set; }
public int B_Year
@@ -172,17 +172,17 @@ namespace DataVAPI.Tool.IOT
if (_B_Year > 0)
{
YearColor = new ALYColor { r = 18, g = 186, b = 96, a = 1 };
B_Year_Str = $"增长 {_B_Year}%";
B_YearStr = $"增长 {_B_Year}%";
}
else
{
YearColor = new ALYColor { r = 255, g = 0, b = 0, a = 1 };
B_Year_Str = $"下降 {_B_Year}%";
B_YearStr = $"下降 {_B_Year}%";
}
}
}

private string B_Month_Str { get; set; }
private string B_MonthStr { get; set; }
public ALYColor MonthColor { get; set; }
private int _B_Month { get; set; }
public int B_Month
@@ -194,17 +194,17 @@ namespace DataVAPI.Tool.IOT
if (_B_Month > 0)
{
MonthColor = new ALYColor { r = 18, g = 186, b = 96, a = 1 };
B_Month_Str = $"增长 {_B_Year}%";
B_MonthStr = $"增长 {_B_Year}%";
}
else
{
MonthColor = new ALYColor { r = 255, g = 0, b = 0, a = 1 };
B_Month_Str = $"下降 {_B_Year}%";
B_MonthStr = $"下降 {_B_Year}%";
}
}
}

private string B_Day_Str { get; set; }
private string B_DayStr { get; set; }
public ALYColor DayColor { get; set; }
private int _B_Day { get; set; }
public int B_Day
@@ -216,12 +216,12 @@ namespace DataVAPI.Tool.IOT
if (_B_Day > 0)
{
DayColor = new ALYColor { r = 18, g = 186, b = 96, a = 1 };
B_Day_Str = $"增长 {_B_Year}%";
B_DayStr = $"增长 {_B_Year}%";
}
else
{
DayColor = new ALYColor { r = 255, g = 0, b = 0, a = 1 };
B_Day_Str = $"下降 {_B_Year}%";
B_DayStr = $"下降 {_B_Year}%";
}
}
}


Loading…
Cancel
Save