Ejemplo n.º 1
0
        /// <summary>
        /// Handles the Click event of the menuItemOptimizeAudio control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param>
        private void menuItemOptimizeAudio_Click(object sender, RoutedEventArgs e)
        {
            optimizeAudio = new OptimizeAudio(SettingsManagerLogic.LearningModule);
            optimizeAudio.StartOptimization(AudioOptimizeCallback);
            optimizeAudio.OptimizationFinished += new EventHandler(optimize_OptimizationFinished);

            optimizeAudioProgress          = new OptimizeAudioProgress();
            optimizeAudioProgress.Owner    = this;
            optimizeAudioProgress.Closing += new System.ComponentModel.CancelEventHandler(optimizeAudioProgress_Closing);
            optimizeAudioProgress.ShowDialog();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Handles the Click event of the menuItemOptimizeAudio control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param>
        private void menuItemOptimizeAudio_Click(object sender, RoutedEventArgs e)
        {
            optimizeAudio = new OptimizeAudio(SettingsManagerLogic.LearningModule);
            optimizeAudio.StartOptimization(AudioOptimizeCallback);
            optimizeAudio.OptimizationFinished += new EventHandler(optimize_OptimizationFinished);

            optimizeAudioProgress = new OptimizeAudioProgress();
            optimizeAudioProgress.Owner = this;
            optimizeAudioProgress.Closing += new System.ComponentModel.CancelEventHandler(optimizeAudioProgress_Closing);
            optimizeAudioProgress.ShowDialog();
        }