コード例 #1
0
        private void OnProduceButtonClicked(object sender, System.Windows.RoutedEventArgs e)
        {
            try
            {
                int    simulationFactoryID = GetSelectedSimulationId();
                double timeInSeconds       = 3;
                timeInSeconds = double.Parse(SimulationSpeedTextBox.Text);

                int timeInMils = (int)(timeInSeconds * 1000.0);
                csu.Produce(simulationFactoryID, timeInMils);
            }
            catch (Exception)
            {
                ShowPopUp("Ungültiger Wert");
            }
        }