setValue 테스트
This commit is contained in:
@@ -359,6 +359,7 @@ public sealed class KarismaTornado3Adapter : ITornado3Adapter, IDisposable
|
||||
var slot = index + 1;
|
||||
values[$"Candidate{slot}Code"] = candidate.CandidateCode;
|
||||
values[$"Candidate{slot}Name"] = candidate.Name;
|
||||
values[$"후보명{slot:00}"] = candidate.Name;
|
||||
values[$"Candidate{slot}Party"] = candidate.Party;
|
||||
values[$"Candidate{slot}VoteCount"] = candidate.VoteCount.ToString(CultureInfo.InvariantCulture);
|
||||
values[$"Candidate{slot}VoteCountDisplay"] = candidate.VoteCount.ToString("N0", CultureInfo.InvariantCulture);
|
||||
@@ -367,6 +368,9 @@ public sealed class KarismaTornado3Adapter : ITornado3Adapter, IDisposable
|
||||
values[$"Candidate{slot}ImagePath"] = ResolveCandidateImagePath(t3CutPath, candidate);
|
||||
}
|
||||
|
||||
values["후보명01"] = "김후보";
|
||||
values["후보명02"] = "이후보";
|
||||
|
||||
if (orderedCandidates.FirstOrDefault() is { } leader)
|
||||
{
|
||||
values["LeaderCode"] = leader.CandidateCode;
|
||||
|
||||
@@ -92,8 +92,8 @@ public sealed class DataViewModel : ObservableObject, IDataRefreshGate, IDisposa
|
||||
|
||||
Candidates =
|
||||
[
|
||||
new CandidateEntry { CandidateCode = "A01", Name = "김하늘", Party = "미래연합", VoteCount = 312000, VoteRate = 34.8, HasImage = true },
|
||||
new CandidateEntry { CandidateCode = "A02", Name = "박준호", Party = "국민실행", VoteCount = 287000, VoteRate = 32.0, HasImage = true },
|
||||
new CandidateEntry { CandidateCode = "A01", Name = "김후보", Party = "미래연합", VoteCount = 312000, VoteRate = 34.8, HasImage = true },
|
||||
new CandidateEntry { CandidateCode = "A02", Name = "이후보", Party = "국민실행", VoteCount = 287000, VoteRate = 32.0, HasImage = true },
|
||||
new CandidateEntry { CandidateCode = "A03", Name = "이서윤", Party = "정의미래", VoteCount = 168000, VoteRate = 18.7, HasImage = false },
|
||||
new CandidateEntry { CandidateCode = "A04", Name = "정민석", Party = "무소속", VoteCount = 129000, VoteRate = 14.5, HasImage = true }
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user