Click here to Skip to main content
15,892,005 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionReal time RTDS Feeds from nse SIte Pin
Member 1178089120-Jun-15 23:11
Member 1178089120-Jun-15 23:11 
AnswerRe: Real time RTDS Feeds from nse SIte Pin
Richard MacCutchan21-Jun-15 1:35
mveRichard MacCutchan21-Jun-15 1:35 
QuestionDistributed Parallel ETL Load processing Pin
OMalleyW16-Jun-15 2:59
OMalleyW16-Jun-15 2:59 
QuestionStruggling to Fix the Syntax Error in WordPress Pin
Lucy Barret11-Jun-15 2:50
professionalLucy Barret11-Jun-15 2:50 
QuestionSingleton Pattern - Different Flavors Pin
FabioI21-May-15 1:05
FabioI21-May-15 1:05 
AnswerRe: Singleton Pattern - Different Flavors Pin
Pete O'Hanlon21-May-15 1:17
mvePete O'Hanlon21-May-15 1:17 
GeneralRe: Singleton Pattern - Different Flavors Pin
FabioI26-May-15 4:50
FabioI26-May-15 4:50 
AnswerDependency injection for reporting user control(solved) Pin
GuyThiebaut12-May-15 0:53
professionalGuyThiebaut12-May-15 0:53 
I am writing an application(C# winforms) that counts calories.

One aspect the the application I would appreciate some ideas or suggestions on is the reporting aspect(a user control within the application).

The reporting control has a graph and a selection of reports that one can run for selected dates or all of the data.

What I am looking to do is to be able to have the report definitions sit outside of the application so that on startup the application fetches the available reports.
This will allow me to distribute the application and reports separately - allowing me to release new reports in the future without releasing a new version of the application.

The report definitions need to contain the logic for how the data is fetched as well as the definition of the chart.
The class holding the data is serialised and loaded on startup and saved to at various points.

So I am open to ideas and suggestions on what I could do.
In essence I am looking for dependency injection with regards to the reporting user control.

Thanks in advance for your ideas

[Edit] Having thought this through a bit more, maybe linking to a DLL dynamically at runtime may be a solution clickety[^] - anyone have any experience of this and/or opinions on it?

Solution

[Edit number 2]I have decided to use a DLL and by making use of reflection query the DLL on the charts available. The DLL will be dynamically loaded at runtime.
The sources of my decision were these two excellent codeproject articles:
Article 1[^]
Article 2[^]
The only issue being that I cannot get generic lists of objects from the assembly due to using .Net 4 so I am using arraylists - heck there may even be a tip(article) in this.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens


modified 13-May-15 6:52am.

Questionhow make conect two computer in c# Pin
naif7776-May-15 21:23
naif7776-May-15 21:23 
AnswerRe: how make conect two computer in c# Pin
Sascha Lefèvre7-May-15 0:58
professionalSascha Lefèvre7-May-15 0:58 
GeneralRe: how make conect two computer in c# Pin
Amarnath S12-Jun-15 0:05
professionalAmarnath S12-Jun-15 0:05 
JokeRe: how make conect two computer in c# Pin
Eddy Vluggen12-Jun-15 0:20
professionalEddy Vluggen12-Jun-15 0:20 
AnswerRe: how make conect two computer in c# Pin
Keld Ølykke13-Jun-15 7:27
Keld Ølykke13-Jun-15 7:27 
QuestionAre we running out of Ipv4 address or is it Y2K all over again Pin
Dr Gadgit28-Apr-15 6:30
Dr Gadgit28-Apr-15 6:30 
AnswerRe: Are we running out of Ipv4 address or is it Y2K all over again Pin
Pete O'Hanlon28-Apr-15 6:33
mvePete O'Hanlon28-Apr-15 6:33 
AnswerRe: Are we running out of Ipv4 address or is it Y2K all over again Pin
Eddy Vluggen28-Apr-15 7:36
professionalEddy Vluggen28-Apr-15 7:36 
GeneralRe: Are we running out of Ipv4 address or is it Y2K all over again Pin
Dr Gadgit29-Apr-15 3:59
Dr Gadgit29-Apr-15 3:59 
GeneralRe: Are we running out of Ipv4 address or is it Y2K all over again Pin
Pete O'Hanlon29-Apr-15 4:16
mvePete O'Hanlon29-Apr-15 4:16 
GeneralRe: Are we running out of Ipv4 address or is it Y2K all over again Pin
Dr Gadgit29-Apr-15 4:49
Dr Gadgit29-Apr-15 4:49 
GeneralRe: Are we running out of Ipv4 address or is it Y2K all over again Pin
Pete O'Hanlon29-Apr-15 5:11
mvePete O'Hanlon29-Apr-15 5:11 
GeneralRe: Are we running out of Ipv4 address or is it Y2K all over again Pin
Dr Gadgit29-Apr-15 5:29
Dr Gadgit29-Apr-15 5:29 
GeneralRe: Are we running out of Ipv4 address or is it Y2K all over again Pin
Pete O'Hanlon29-Apr-15 5:37
mvePete O'Hanlon29-Apr-15 5:37 
GeneralRe: Are we running out of Ipv4 address or is it Y2K all over again Pin
Dr Gadgit29-Apr-15 6:47
Dr Gadgit29-Apr-15 6:47 
GeneralRe: Are we running out of Ipv4 address or is it Y2K all over again Pin
Pete O'Hanlon29-Apr-15 6:55
mvePete O'Hanlon29-Apr-15 6:55 
GeneralRe: Are we running out of Ipv4 address or is it Y2K all over again Pin
harold aptroot29-Apr-15 7:04
harold aptroot29-Apr-15 7:04 

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.