Example #1
0
        public OreCalculatorDetailForm(CalculationType calcType, float conversionRate, MarketItem oreData, MarketItem[] outputData, string region, string system, string station, float val)
        {
            InitializeComponent();

            txtRegion.Text           = region;
            txtStation.Text          = station;
            txtSystem.Text           = system;
            numMinimalSecurity.Value = (decimal)val;
            this.calcType            = calcType;
            oreIndex = OreDataProvider.GetOreIndex(oreData.ID);

            Text              = "Detail Screen: " + OreDataProvider.OreNames[oreIndex];
            calculator        = new OreDetailCalculator(calcType, conversionRate, oreData, outputData);
            numOreYield.Value = (decimal)conversionRate;
        }
Example #2
0
        //
        //  Constructor/Destructor
        //

        #region Constructor/Destructor

        public OreCalculatorDetailForm(CalculationType calcType, float conversionRate, int oreIndex, string region, string system, string station, float val)
        {
            InitializeComponent();

            txtRegion.Text           = region;
            txtStation.Text          = station;
            txtSystem.Text           = system;
            numMinimalSecurity.Value = (decimal)val;
            this.calcType            = calcType;
            this.oreIndex            = oreIndex;

            Text              = "Detail Screen: " + OreDataProvider.OreNames[oreIndex];
            calculator        = new OreDetailCalculator(calcType, conversionRate, oreIndex);
            numOreYield.Value = (decimal)conversionRate;

            UpdateMarketData();
        }