Exemplo n.º 1
0
 public void HandleArguments(string[] args)
 {
     if (args.Length == 2)
     {
         var filePath = args[1];
         bootstrapper.GetEventAggregator().Publish(new FileOpenEvent(filePath));
     }
 }
Exemplo n.º 2
0
        public App()
        {
            InitializeComponent();

            bootstrapper = new AppBootstrapper();

            HtmlPreview.Init(bootstrapper.GetEventAggregator());
        }
Exemplo n.º 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));
         }
     }
 }