private void OnArgsChanged() { string[] args = ArgsImporter.GetArgs(); Dispatcher.Invoke(() => { for (int i = sources.Count; i < args.Length; i++) { TryAddSource(args[i]); } }); }
private void Application_Startup(object sender, StartupEventArgs e) { ArgsImporter.Initialize(MEMORY_NAME, ARGS_SIZE); if (e.Args.Length > 0) { ArgsImporter.AddArg(e.Args[0]); } if (ArgsImporter.IsMainApp == true) { new MainWindow().Show(); } else { Shutdown(); } }
private void Application_Exit(object sender, ExitEventArgs e) { ArgsImporter.Dispose(); }