Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change module and service evant handling:
* 'sender' is now PluginManager instance * custom EventArgs classes including the IService or ILanguageModule instances
- Loading branch information
maul.esel
committed
Apr 27, 2012
1 parent
b51fdab
commit cf5e286
Showing
5 changed files
with
75 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Runtime.InteropServices; | ||
|
||
namespace ChameleonCoder.Plugins | ||
{ | ||
[ComVisible(true), ClassInterface(ClassInterfaceType.AutoDual)] | ||
public class ModuleEventArgs : System.EventArgs | ||
{ | ||
internal ModuleEventArgs(ILanguageModule module) | ||
{ | ||
moduleInstance = module; | ||
} | ||
|
||
public ILanguageModule Module | ||
{ | ||
get { return moduleInstance; } | ||
} | ||
|
||
[ComVisible(false)] | ||
private readonly ILanguageModule moduleInstance = null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Runtime.InteropServices; | ||
|
||
namespace ChameleonCoder.Plugins | ||
{ | ||
[ComVisible(true), ClassInterface(ClassInterfaceType.AutoDual)] | ||
public class ServiceEventArgs : System.EventArgs | ||
{ | ||
internal ServiceEventArgs(IService service) | ||
{ | ||
serviceInstance = service; | ||
} | ||
|
||
public IService Service | ||
{ | ||
get { return serviceInstance; } | ||
} | ||
|
||
[ComVisible(false)] | ||
private readonly IService serviceInstance = null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters