Exemplo n.º 1
0
        private void SonicBoomMenu_Click(object sender, EventArgs e)
        {
            var InputDataEventArgs = new SonicBoomExampleEventArgs();

            SonicBoomExample(InputDataEventArgs);
            SetSonicBoomInputData(InputDataEventArgs.InputData);
            TabControl.SelectedIndex = 2;
            CalculateSonicBoomMenuItem_Click();
        }
Exemplo n.º 2
0
        void MainView_SonicBoomExample(SonicBoomExampleEventArgs e)
        {
            var xmlDoc = new XmlDocument();

            xmlDoc.LoadXml(InputDataExampleResource.SonicBoom);
            Model.OpenSonicBoomInputData(
                xmlDoc,
                out SonicBoomCalculationInputData RocketID,
                out SonicBoomCalculationInputData VehicleID,
                out List <WeatherParameters> weatherParameters);
            e.InputData = new SonicBoomInputData()
            {
                RocketBallistics             = RocketID.Ballistics,
                VehicleBallistics            = VehicleID.Ballistics,
                RocketGeometricalParameters  = RocketID.GeometricalParameters,
                VehicleGeometricalParameters = VehicleID.GeometricalParameters,
                WeatherParameters            = weatherParameters
            };
        }