Exemplo n.º 1
0
 private void OnApplicationStarted(PluginInfrastructureEventArgs e)
 {
     if (ApplicationStarted != null)
     {
         ApplicationStarted(this, e);
     }
 }
Exemplo n.º 2
0
 private void OnPluginLoaded(PluginInfrastructureEventArgs e)
 {
     if (PluginLoaded != null)
     {
         PluginLoaded(this, e);
     }
 }
Exemplo n.º 3
0
 private void OnInitialized(PluginInfrastructureEventArgs e)
 {
     if (Initialized != null)
     {
         Initialized(this, e);
     }
 }
Exemplo n.º 4
0
        private void applicationManager_PluginLoaded(object sender, PluginInfrastructureEventArgs e)
        {
            // load the matching plugin description (
            PluginDescription desc = (PluginDescription)e.Entity;

            // access to plugin descriptions has to be synchronized because multiple applications
            // can be started or stopped at the same time
            lock (locker) {
                // also load the matching plugin description in this AppDomain
                plugins.First(x => x.Equals(desc)).Load();
            }
            OnPluginLoaded(e);
        }
Exemplo n.º 5
0
 private void pluginManager_PluginLoaded(object sender, PluginInfrastructureEventArgs e) {
   SetStatusStrip("Loaded " + e.Entity);
 }
Exemplo n.º 6
0
 private void pluginManager_Initializing(object sender, PluginInfrastructureEventArgs e) {
   SetStatusStrip("Initializing PluginInfrastructure");
 }
Exemplo n.º 7
0
 private void installationManager_PluginInstalled(object sender, PluginInfrastructureEventArgs e) {
   SetStatusStrip("Installed " + e.Entity);
 }
Exemplo n.º 8
0
 private void OnPluginLoaded(PluginInfrastructureEventArgs e) {
   if (PluginLoaded != null)
     PluginLoaded(this, e);
 }
Exemplo n.º 9
0
 private void manager_ApplicationStarted(object sender, PluginInfrastructureEventArgs e) {
   SafeUpdateMessage("Started " + e.Entity);
 }
Exemplo n.º 10
0
 private void manager_Initializing(object sender, PluginInfrastructureEventArgs e) {
   SafeUpdateMessage("Initializing");
 }
Exemplo n.º 11
0
 private void manager_PluginLoaded(object sender, PluginInfrastructureEventArgs e) {
   SafeUpdateMessage("Loaded " + e.Entity);
 }
Exemplo n.º 12
0
 private void OnInstalled(PluginInfrastructureEventArgs args) {
   if (PluginInstalled != null) PluginInstalled(this, args);
 }
Exemplo n.º 13
0
 private void OnDeleted(PluginInfrastructureEventArgs args) {
   if (PluginRemoved != null) PluginRemoved(this, args);
 }
Exemplo n.º 14
0
 private void OnApplicationStarted(PluginInfrastructureEventArgs e) {
   if (ApplicationStarted != null) {
     ApplicationStarted(this, e);
   }
 }
Exemplo n.º 15
0
 private void OnInitialized(PluginInfrastructureEventArgs e) {
   if (Initialized != null) {
     Initialized(this, e);
   }
 }
Exemplo n.º 16
0
 private void applicationManager_PluginLoaded(object sender, PluginInfrastructureEventArgs e) {
   // load the matching plugin description (
   PluginDescription desc = (PluginDescription)e.Entity;
   // access to plugin descriptions has to be synchronized because multiple applications 
   // can be started or stopped at the same time
   lock (locker) {
     // also load the matching plugin description in this AppDomain
     plugins.First(x => x.Equals(desc)).Load();
   }
   OnPluginLoaded(e);
 }