예제 #1
0
 public static void Show(PrizeDto prize, List <Person> winners)
 {
     using (var form = new WinnerForm(prize, winners))
     {
         form.ShowDialog();
     }
 }
예제 #2
0
 public WinnerForm(PrizeDto prize, List <Person> winners)
 {
     this.prize   = prize;
     this.winners = winners;
     WindowState  = FormWindowState.Maximized;
     InitializeComponent();
     InitBrowser("./Resources/Html/Winner.html");
 }
예제 #3
0
 public void PrizeSelected(string prizeId)
 {
     _prize = SystemPrizeProvider.Prizes[prizeId];
     Close();
 }