Esempio n. 1
0
        private void AudioConfiguration_Click(object sender, RoutedEventArgs e)
        {
            AudioConfig config = new AudioConfig()
            {
                Owner = this
            };

            config.ShowDialog();
        }
Esempio n. 2
0
        private void Simulate_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            if (ActiveEditor != null)
            {
                AudioConfig config = new AudioConfig()
                {
                    Owner = this
                };
                if (config.Inputs.Length + config.Outputs.Length == 0)
                {
                    if (!(config.ShowDialog() ?? false))
                    {
                        return;
                    }
                }

                LiveSimulation simulation = new LiveSimulation(ActiveEditor.Schematic, config.Device, config.Inputs, config.Outputs)
                {
                    Owner = this, Title = ActiveEditor.Title + " - Live Simulation"
                };
                simulation.Show();
            }
        }
Esempio n. 3
0
        private void Simulate_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            if (ActiveEditor != null)
            {
                AudioConfig config = new AudioConfig() { Owner = this };
                if (config.Inputs.Length + config.Outputs.Length == 0)
                    if (!(config.ShowDialog() ?? false))
                        return;

                LiveSimulation simulation = new LiveSimulation(ActiveEditor.Schematic, config.Device, config.Inputs, config.Outputs) { Owner = this, Title = ActiveEditor.Title + " - Live Simulation" };
                simulation.Show();
            }
        }
Esempio n. 4
0
 private void AudioConfiguration_Click(object sender, RoutedEventArgs e)
 {
     AudioConfig config = new AudioConfig() { Owner = this };
     config.ShowDialog();
 }