예제 #1
0
 public GameWindow(CompanyNameGenerator cng, Player p)
 {
     InitializeComponent();
     this.cng  = cng;
     this.p    = p;
     companies = cng.GetGeneratedCompanies();
     market_datagrid.ItemsSource   = companies;
     player_balance_label.Content += p.Balance.ToString();
     current_day_label.Content     = "You are on day " + currentDay + "/30";
 }
예제 #2
0
 public MainWindow()
 {
     InitializeComponent();
     cng = new CompanyNameGenerator();
     p   = new Player(1000, 500, 100);
 }