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