Example #1
0
        public EdSystem Test()
        {
            var system = new EdSystem {
                Name = "LS 3482", Id = 1
            };

            var stationA = new EdStation {
                Id = 1, Name = "Eudoxus Dock"
            };

            var cBeer = new EdCommodity
            {
                Id         = 1,
                Name       = "Beer",
                Sell       = 176,
                Buy        = 0,
                Demand     = 9755,
                DemandRate = DemandSupplyRate.High,
                Supply     = 0,
                SupplyRate = DemandSupplyRate.None
            };

            var cCrop = new EdCommodity
            {
                Id         = 2,
                Name       = "Crop Harvesters",
                Sell       = 1997,
                Buy        = 2023,
                Demand     = 0,
                DemandRate = DemandSupplyRate.None,
                Supply     = 10655,
                SupplyRate = DemandSupplyRate.Medium
            };

            stationA.Commodities.Add(cBeer);
            stationA.Commodities.Add(cCrop);

            system.Stations.Add(stationA);

            return(system);
        }
Example #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            var c = new EdCommodity();

            c.Name = textBox1.Text;
        }