diff --git a/Application/FileConverter/Application.xaml.cs b/Application/FileConverter/Application.xaml.cs index ee2a3b1..0283e46 100644 --- a/Application/FileConverter/Application.xaml.cs +++ b/Application/FileConverter/Application.xaml.cs @@ -25,6 +25,7 @@ namespace FileConverter using FileConverter.ConversionJobs; using FileConverter.Diagnostics; using FileConverter.Upgrade; + using FileConverter.Windows; public partial class Application : System.Windows.Application { @@ -73,6 +74,12 @@ namespace FileConverter set; } + public bool HideMainWindow + { + get; + set; + } + public bool Verbose { get; @@ -180,7 +187,7 @@ namespace FileConverter //args[6] = @"D:\Test\Track03.mp3"; //args[7] = @"D:\Test\Track04.mp3"; - System.Array.Resize(ref args, 2); + System.Array.Resize(ref args, 1); args[1] = "--settings"; //System.Array.Resize(ref args, 5); @@ -201,7 +208,11 @@ namespace FileConverter if (args.Length == 1) { - // TODO: Help windows to explain that this application is a context menu extension. + // Diplay help windows to explain that this application is a context menu extension. + ApplicationStartHelp applicationStartHelp = new ApplicationStartHelp(); + applicationStartHelp.Show(); + this.HideMainWindow = true; + return; } ConversionPreset conversionPreset = null; @@ -225,6 +236,7 @@ namespace FileConverter case "settings": this.ShowSettings = true; + this.HideMainWindow = true; break; case "apply-settings": diff --git a/Application/FileConverter/FileConverter.csproj b/Application/FileConverter/FileConverter.csproj index c00014b..38a93c1 100644 --- a/Application/FileConverter/FileConverter.csproj +++ b/Application/FileConverter/FileConverter.csproj @@ -124,6 +124,9 @@ + + ApplicationStartHelp.xaml + DiagnosticsWindow.xaml @@ -142,6 +145,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + Designer MSBuild:Compile @@ -215,6 +222,9 @@ + + +