Exemple #1
0
        private void OnArgsChanged()
        {
            string[] args = ArgsImporter.GetArgs();

            Dispatcher.Invoke(() => {
                for (int i = sources.Count; i < args.Length; i++)
                {
                    TryAddSource(args[i]);
                }
            });
        }
Exemple #2
0
        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();
            }
        }
Exemple #3
0
 private void Application_Exit(object sender, ExitEventArgs e)
 {
     ArgsImporter.Dispose();
 }