private void ProcessCommandline() { var commandLine = new WWAudioFilterCommandLine(); if (commandLine.ParseCommandLine()) { Application.Current.Shutdown(); return; } }
public MainWindow() { InitializeComponent(); SetLocalizedTextToUI(); Title = string.Format(CultureInfo.CurrentCulture, "WWAudioFilter version {0}", AssemblyVersion); mBackgroundWorker = new BackgroundWorker(); mBackgroundWorker.WorkerReportsProgress = true; mBackgroundWorker.DoWork += new DoWorkEventHandler(Background_DoWork); mBackgroundWorker.ProgressChanged += new ProgressChangedEventHandler(Background_ProgressChanged); mBackgroundWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(Background_RunWorkerCompleted); var commandLine = new WWAudioFilterCommandLine(); if (commandLine.ParseCommandLine()) { Application.Current.Shutdown(); return; } }