private void TradeHubChanged(object sender, SelectionChangedEventArgs e) { if (TradeHubComboBox.SelectedItem != null) { SettingsInterface.GlobalSettings.TradeHub = ((SolarSystem)TradeHubComboBox.SelectedItem).SolarSysteId.ToString(); } EoiInterface.CalculateAllBlueprints(); }
private void ExportOrderChanged(object sender, SelectionChangedEventArgs e) { if (ExportOrderTypeComboBox.SelectedItem != null) { SettingsInterface.GlobalSettings.ExportOrderType = (OrderType)ExportOrderTypeComboBox.SelectedItem; } EoiInterface.CalculateAllBlueprints(); }
private void ProfitPerHourForPriceChanged(object sender, TextChangedEventArgs e) { decimal result; if (!string.IsNullOrWhiteSpace(ProfitPerHourForPriceTextBox.Text) && decimal.TryParse(ProfitPerHourForPriceTextBox.Text, out result)) { SettingsInterface.GlobalSettings.ProfitPerHourForPrice = result; } EoiInterface.CalculateAllBlueprints(); }
private void NotOwnedTeChanged(object sender, TextChangedEventArgs e) { int result; if (!string.IsNullOrWhiteSpace(NotOwnedTeTextBox.Text) && int.TryParse(NotOwnedTeTextBox.Text, out result)) { SettingsInterface.GlobalSettings.NotOwnedTe = result; } EoiInterface.CalculateAllBlueprints(); }
private void StructureMaterialBonusChanged(object sender, TextChangedEventArgs e) { decimal result; if (!string.IsNullOrWhiteSpace(StructureMaterialBonusTextBox.Text) && decimal.TryParse(StructureMaterialBonusTextBox.Text, out result)) { SettingsInterface.GlobalSettings.StructureMaterialBonus = result; } EoiInterface.CalculateAllBlueprints(); }
private void IndustryTaxChanged(object sender, TextChangedEventArgs e) { decimal result; if (!string.IsNullOrWhiteSpace(IndustryTaxTextBox.Text) && decimal.TryParse(IndustryTaxTextBox.Text, out result)) { SettingsInterface.GlobalSettings.IndustryTax = result; } EoiInterface.CalculateAllBlueprints(); }
private void EnableCalculationChanged(object sender, RoutedEventArgs e) { SettingsInterface.GlobalSettings.EnableCalculation = EnableCalculationCheckBox.IsChecked.Value; EoiInterface.CalculateAllBlueprints(); }