Пример #1
0
 private void OnApplicationStarted(PluginInfrastructureEventArgs e)
 {
     if (ApplicationStarted != null)
     {
         ApplicationStarted(this, e);
     }
 }
Пример #2
0
 private void OnPluginLoaded(PluginInfrastructureEventArgs e)
 {
     if (PluginLoaded != null)
     {
         PluginLoaded(this, e);
     }
 }
Пример #3
0
 private void OnInitialized(PluginInfrastructureEventArgs e)
 {
     if (Initialized != null)
     {
         Initialized(this, e);
     }
 }
Пример #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);
        }
Пример #5
0
 private void pluginManager_PluginLoaded(object sender, PluginInfrastructureEventArgs e) {
   SetStatusStrip("Loaded " + e.Entity);
 }
Пример #6
0
 private void pluginManager_Initializing(object sender, PluginInfrastructureEventArgs e) {
   SetStatusStrip("Initializing PluginInfrastructure");
 }
Пример #7
0
 private void installationManager_PluginInstalled(object sender, PluginInfrastructureEventArgs e) {
   SetStatusStrip("Installed " + e.Entity);
 }
Пример #8
0
 private void OnPluginLoaded(PluginInfrastructureEventArgs e) {
   if (PluginLoaded != null)
     PluginLoaded(this, e);
 }
Пример #9
0
 private void manager_ApplicationStarted(object sender, PluginInfrastructureEventArgs e) {
   SafeUpdateMessage("Started " + e.Entity);
 }
Пример #10
0
 private void manager_Initializing(object sender, PluginInfrastructureEventArgs e) {
   SafeUpdateMessage("Initializing");
 }
Пример #11
0
 private void manager_PluginLoaded(object sender, PluginInfrastructureEventArgs e) {
   SafeUpdateMessage("Loaded " + e.Entity);
 }
Пример #12
0
 private void OnInstalled(PluginInfrastructureEventArgs args) {
   if (PluginInstalled != null) PluginInstalled(this, args);
 }
Пример #13
0
 private void OnDeleted(PluginInfrastructureEventArgs args) {
   if (PluginRemoved != null) PluginRemoved(this, args);
 }
Пример #14
0
 private void OnApplicationStarted(PluginInfrastructureEventArgs e) {
   if (ApplicationStarted != null) {
     ApplicationStarted(this, e);
   }
 }
Пример #15
0
 private void OnInitialized(PluginInfrastructureEventArgs e) {
   if (Initialized != null) {
     Initialized(this, e);
   }
 }
Пример #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);
 }