예제 #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);
 }