private void Shop1Button_Click(object sender, EventArgs e) { try { if (game.Shops.Count == 0) { if (InputTextbox.TextLength == 0) { throw new Exception("Shop must have a name!"); } game.LastUpdated = DateTime.Now; game.AddShop(InputTextbox.Text); Shop1Label.Text = game.Shops[0].ToString(); Shop1Button.Text = game.Shops[0].Name; Shop1Label.Visible = true; Shop2Button.Visible = true; Shop2Label.Text = 5000.ToString(); InputTextbox.Text = ""; } else { game.SelectedShop = 0; UpdateButtons(); CheckDoableUpdates(); } } catch (Exception ex) { ExceptionLabel.Text = ex.Message; } }