protected override void OnCreateMainForm() { var parsed = new ParsedArguments(this.CommandLineArgs); if (parsed.Extract) { this.Extract(parsed.ExtractFile, parsed.ExtractDestination); } else { this.MainForm = new BSABrowser(parsed.Files.ToArray()); } }
protected override async void OnStartupNextInstance(MsVB.StartupNextInstanceEventArgs eventArgs) { base.OnStartupNextInstance(eventArgs); var parsed = new ParsedArguments(eventArgs.CommandLine); if (parsed.Extract) { this.Extract(parsed.ExtractFile, parsed.ExtractDestination); } else { if (this.MainForm == null) { this.MainForm = new BSABrowser(parsed.Files.ToArray()); } else { this.MainForm.Activate(); await(this.MainForm as BSABrowser).OpenArchives(true, parsed.Files); } } }