private void CalculateAllTradesManifestsAndRoutesButton_Click(object sender, EventArgs e) { gameData.Capital = CapitalNumericUpDown.Value; gameData.CargoSlots = CargoSlotsNumericUpDown.Value; if (gameData.Capital <= 0 || gameData.CargoSlots <= 0) { MessageBox.Show("Please provide your available capital and cargo slots.", "Error", MessageBoxButtons.OK); return; } Adviser.CalculateAll(gameData); if (gameData.Trades.Count > 0) { TradesManifestsRoutesDialog dialog = new TradesManifestsRoutesDialog(gameData); dialog.Show(); } else { MessageBox.Show("No trades found. Make sure more than one system is up to date. Check your spelling on the commodities.", "Error: No trades found.", MessageBoxButtons.OK); } }
private void CalculateAllTradesManifestsAndRoutesButton_Click(object sender, EventArgs e) { gameData.Capital = CapitalNumericUpDown.Value; gameData.CargoSlots = CargoSlotsNumericUpDown.Value; if (gameData.Capital <= 0 || gameData.CargoSlots <= 0) { MessageBox.Show("Please provide your available capital and cargo slots.", "Error", MessageBoxButtons.OK); return; } Adviser.CalculateAll(gameData); if (gameData.Trades.Count > 0) { TradesManifestsRoutesDialog dialog = new TradesManifestsRoutesDialog(gameData); dialog.Show(); } else MessageBox.Show("No trades found. Make sure more than one system is up to date. Check your spelling on the commodities.", "Error: No trades found.", MessageBoxButtons.OK); }