From cedd9b6e974e64b3d5710795e796635eefcff5bb Mon Sep 17 00:00:00 2001 From: james lee Date: Sun, 11 Sep 2022 22:09:15 +0900 Subject: [PATCH] Update README.md --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 544e396..3f1e5ee 100644 --- a/README.md +++ b/README.md @@ -219,6 +219,31 @@ public class TablesViewModel ``` +## MatchModel +```csharp + public TeamModel(string code) + { + Code = code; + Emblem = $"{code}.png"; + } + + public class MatchModel + { + public TeamModel Home { get; set; } + public TeamModel Away { get; set; } + public int HomeScore { get; set; } + public int AwayScore { get; set; } + + public MatchModel(string home, string away, int homeScore, int awayScore) + { + Home = new(home); + Away = new(away); + HomeScore = homeScore; + AwayScore = awayScore; + } + } +``` + ## ScoreTemplate ```xaml @@ -288,6 +313,8 @@ public class TablesViewModel ``` + + - 최소한의 MVVM 바인딩을 사용하 것이므로 외부 툴킷은 설치하지 않음. - 다시 루트로 와서 Models 폴더 추가 - ClubModel 추가 및 속성 추가