public void HandleArguments(string[] args) { if (args.Length == 2) { var filePath = args[1]; bootstrapper.GetEventAggregator().Publish(new FileOpenEvent(filePath)); } }
public App() { InitializeComponent(); bootstrapper = new AppBootstrapper(); HtmlPreview.Init(bootstrapper.GetEventAggregator()); }
public void HandleArguments(string[] args) { if (args.Length == 2) { var filePath = args[1]; if (File.Exists(filePath) && Constants.DefaultExtensions.Contains(Path.GetExtension(filePath).ToLower())) { bootstrapper.GetEventAggregator().Publish(new FileOpenEvent(filePath)); } } }