コード例 #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
ファイル: PluginValidator.cs プロジェクト: t-h-e/HeuristicLab
 private void OnPluginLoaded(PluginInfrastructureEventArgs e) {
   if (PluginLoaded != null)
     PluginLoaded(this, e);
 }
コード例 #9
0
ファイル: SplashScreen.cs プロジェクト: t-h-e/HeuristicLab
 private void manager_ApplicationStarted(object sender, PluginInfrastructureEventArgs e) {
   SafeUpdateMessage("Started " + e.Entity);
 }
コード例 #10
0
ファイル: SplashScreen.cs プロジェクト: t-h-e/HeuristicLab
 private void manager_Initializing(object sender, PluginInfrastructureEventArgs e) {
   SafeUpdateMessage("Initializing");
 }
コード例 #11
0
ファイル: SplashScreen.cs プロジェクト: t-h-e/HeuristicLab
 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);
 }