Ejemplo n.º 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            NonClientRegionAPI.Glassify(this);

            progressBar.IsEnabled                      = false;
            progressMonitor.ProcessingStarted         += Instance_ProcessingStarted;
            progressMonitor.ProcessingProgressChanged += Instance_ProcessingProgressChanged;
            progressMonitor.ProcessingFinished        += Instance_ProcessingFinished;
            ProgressMonitor.GlobalInstance.AddChild(progressMonitor);
        }
Ejemplo n.º 2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            NonClientRegionAPI.Glassify(this);

            // INIT PROGRESSBAR
            progressBar.IsEnabled                      = false;
            progressMonitor.ProcessingStarted         += Instance_ProcessingStarted;
            progressMonitor.ProcessingProgressChanged += Instance_ProcessingProgressChanged;
            progressMonitor.ProcessingFinished        += Instance_ProcessingFinished;
            ProgressMonitor.GlobalInstance.AddChild(progressMonitor);

            bestMatchRadioButton.IsChecked = true;
            oltwRadioButton.IsChecked      = true;
            timeWarpModeBorderSectionsRadioButton.IsChecked = true;

            matchGrid.ItemsSource = multiTrackViewer.Matches;
        }
Ejemplo n.º 3
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (Owner == null)
            {
                throw new InvalidOperationException("Required owner is not set");
            }

            NonClientRegionAPI.Glassify(this);

            // INIT PROGRESSBAR
            progressBar.IsEnabled                      = false;
            progressMonitor.ProcessingStarted         += Instance_ProcessingStarted;
            progressMonitor.ProcessingProgressChanged += Instance_ProcessingProgressChanged;
            progressMonitor.ProcessingFinished        += Instance_ProcessingFinished;

            // Disable parent window to force the user to wait for this modal window to close
            // http://stackoverflow.com/a/22964229
            ownerWindowHandle = (new WindowInteropHelper(Owner)).Handle;
            EnableWindow(ownerWindowHandle, false);
        }