Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            //FormSagCarinaMission frm = new FormSagCarinaMission(this);
            //            frm.Show();

            //SystemViewForm frm = new SystemViewForm();
            //frm.Show();

            EdMaterializer mat = new EdMaterializer();

            mat.GetAllPlanets(null);


            EDPlanet obj = new EDPlanet();

            obj.commander    = "Test";
            obj.system       = "Fine Ring Sector JH-V C2-4";
            obj.objectName   = "A 3";
            obj.ObjectType   = ObjectTypesEnum.HighMetalContent;
            obj.arrivalPoint = 0;
            obj.gravity      = 0.13f;

            obj.materials[MaterialEnum.Carbon]     = true;
            obj.materials[MaterialEnum.Iron]       = true;
            obj.materials[MaterialEnum.Nickel]     = true;
            obj.materials[MaterialEnum.Phosphorus] = true;
            obj.materials[MaterialEnum.Sulphur]    = true;
            obj.materials[MaterialEnum.Germanium]  = true;
            obj.materials[MaterialEnum.Selenium]   = true;
            obj.materials[MaterialEnum.Vanadium]   = true;
            obj.materials[MaterialEnum.Cadmium]    = true;
            obj.materials[MaterialEnum.Molybdenum] = true;
            obj.materials[MaterialEnum.Tin]        = true;
            obj.materials[MaterialEnum.Polonium]   = true;

            mat.DeletePlanetID(5);
            mat.DeletePlanetID(6);
            mat.DeletePlanetID(7);

            mat.StorePlanet(obj);
        }