Пример #1
0
        private void MainWindow_OnContentRendered(object sender, EventArgs e)
        {
            var args = Environment.GetCommandLineArgs();

            if (args.Length > 1 && File.Exists(args[1]))
            {
                _vm.StartupMode = AppStartupMode.Import;
            }

            _vm.Initialize();
            DataContext = _vm;
        }