Пример #1
0
 public void HandleArguments(string[] args)
 {
     if (args.Length == 2)
     {
         var filePath = args[1];
         bootstrapper.GetEventAggregator().Publish(new FileOpenEvent(filePath));
     }
 }
Пример #2
0
        public App()
        {
            InitializeComponent();

            bootstrapper = new AppBootstrapper();

            HtmlPreview.Init(bootstrapper.GetEventAggregator());
        }
Пример #3
0
 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));
         }
     }
 }