Beispiel #1
0
 public void RunApplet(MenuButton button)
 {
     if (button == null)
     {
         return;
     }
     _logger.Info("Trying to start applet {0}", button.Applet);
     if (button.Applet.IsEmbedded)
     {
         Messenger.Default.Send(new NavigateMvvmMessage()
         {
             Header    = button.Caption,
             ViewName  = AppHostView.ID,
             Parameter = button
         });
     }
     else
     {
         ComSink.RunApplet(button.LaunchUrl, null);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Loads the add in.
 /// </summary>
 public void LoadAddIn()
 {
     //if (AddinPanel.Child != null) return;
     // Do the loading asynchronously to save startup time.
     ComSink.RunApplet(_appInfo.LaunchUrl, OnAddInAvailableAsync);
 }