Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
AnswerRe: Setting the "Address" of INternet Explorer through C# Pin
jason_mf28-Jun-07 20:19
jason_mf28-Jun-07 20:19 
AnswerRe: Setting the "Address" of INternet Explorer through C# Pin
Shyam K Pananghat28-Jun-07 20:22
Shyam K Pananghat28-Jun-07 20:22 
GeneralRe: Setting the "Address" of INternet Explorer through C# Pin
Abhi210428-Jun-07 20:57
Abhi210428-Jun-07 20:57 
AnswerRe: Setting the "Address" of INternet Explorer through C# Pin
Abhi210428-Jun-07 20:53
Abhi210428-Jun-07 20:53 
QuestionCrystal Report problem Pin
phantanagu28-Jun-07 17:27
phantanagu28-Jun-07 17:27 
QuestionHow many iamges can ImageList contain? Pin
jason_mf28-Jun-07 16:35
jason_mf28-Jun-07 16:35 
AnswerRe: How many iamges can ImageList contain? Pin
Martin#28-Jun-07 19:54
Martin#28-Jun-07 19:54 
AnswerRe: How many iamges can ImageList contain? Pin
Vikram A Punathambekar28-Jun-07 21:24
Vikram A Punathambekar28-Jun-07 21:24 
Questionpriority on background threads Pin
urbane.tiger28-Jun-07 16:23
urbane.tiger28-Jun-07 16:23 
AnswerRe: priority on background threads Pin
Jimmanuel29-Jun-07 0:58
Jimmanuel29-Jun-07 0:58 
GeneralRe: priority on background threads Pin
urbane.tiger4-Jul-07 21:31
urbane.tiger4-Jul-07 21:31 
QuestionC# How to display a PDF file from Windows app? Pin
mperazac28-Jun-07 16:04
mperazac28-Jun-07 16:04 
AnswerRe: C# How to display a PDF file from Windows app? Pin
Vikram A Punathambekar28-Jun-07 17:53
Vikram A Punathambekar28-Jun-07 17:53 
AnswerRe: C# How to display a PDF file from Windows app? Pin
Albu Marius28-Jun-07 21:53
Albu Marius28-Jun-07 21:53 
AnswerRe: C# How to display a PDF file from Windows app? Pin
Giorgi Dalakishvili28-Jun-07 23:40
mentorGiorgi Dalakishvili28-Jun-07 23:40 
GeneralRe: C# How to display a PDF file from Windows app? Pin
mperazac29-Jun-07 7:39
mperazac29-Jun-07 7:39 
GeneralRe: C# How to display a PDF file from Windows app? Pin
Giorgi Dalakishvili1-Jul-07 20:29
mentorGiorgi Dalakishvili1-Jul-07 20:29 
QuestionImage Processing Pin
james_dixon_200828-Jun-07 11:12
james_dixon_200828-Jun-07 11:12 
AnswerRe: Image Processing Pin
Luc Pattyn28-Jun-07 11:28
sitebuilderLuc Pattyn28-Jun-07 11:28 
GeneralRe: Image Processing Pin
james_dixon_200828-Jun-07 11:44
james_dixon_200828-Jun-07 11:44 
GeneralRe: Image Processing Pin
Christian Graus28-Jun-07 11:47
protectorChristian Graus28-Jun-07 11:47 
GeneralRe: Image Processing Pin
james_dixon_200828-Jun-07 12:08
james_dixon_200828-Jun-07 12:08 
GeneralRe: Image Processing Pin
Luc Pattyn28-Jun-07 12:33
sitebuilderLuc Pattyn28-Jun-07 12:33 
AnswerRe: Image Processing Pin
Amar Chaudhary28-Jun-07 12:30
Amar Chaudhary28-Jun-07 12:30 
AnswerRe: Image Processing Pin
gumi_r@msn.com29-Jun-07 4:37
gumi_r@msn.com29-Jun-07 4:37 
Hi James,

about plug-ins it's all about making them all behave under the same rules...same calling conventions and same expected behaviour >> Interfaces.

In order to make use of a plug you just need to make your app be able to load them up in runtime and configure the UI dinamically once it reads what plug ins are available. With a little Reflection that is easy and you can choose quite a few paths.

Easiest I can think of right now is making your app, on start up, search some predefined folder(s) for any dlls and try to load them up. Once loaded, through Reflection you can search for public classes that implement your plugin interface.

A fast thought and probably not ideal interface could be:

public Interface IPlugIn
{
string GetName();
Image ProcessImage(Image imgh);
Form PluginDialog(Image img) (which in turn can implement some other standard interface you might define), etc.
}

For each of these classes, you add a menu item or whatever with it's name through GetName() method, and map the click event to the relevant call (be it PluginDialog, or directly ProcessImage() or whatever)

With that info you can configure your UI and mapp all calls the user can make in order to use any of the loaded plugins. Its a little more cumbersome because you have to do it through reflection because the Assemblies you are calling are not referenced while in design time and you can't call them directly from your code.

Hope this helps.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.