Click here to Skip to main content
16,013,642 members
Home / Discussions / C#
   

C#

 
GeneralRe: Richtextbox questions/problems.. Pin
W Balboos, GHB6-Mar-08 9:46
W Balboos, GHB6-Mar-08 9:46 
GeneralRe: Richtextbox questions/problems.. Pin
Jacob Dixon6-Mar-08 12:29
Jacob Dixon6-Mar-08 12:29 
GeneralRe: Richtextbox questions/problems.. Pin
Jacob Dixon6-Mar-08 12:53
Jacob Dixon6-Mar-08 12:53 
GeneralRe: Richtextbox questions/problems.. Pin
W Balboos, GHB7-Mar-08 2:31
W Balboos, GHB7-Mar-08 2:31 
GeneralRe: Richtextbox questions/problems.. Pin
Jacob Dixon7-Mar-08 12:45
Jacob Dixon7-Mar-08 12:45 
GeneralRe: Richtextbox questions/problems.. Pin
Jacob Dixon7-Mar-08 13:29
Jacob Dixon7-Mar-08 13:29 
GeneralRe: Richtextbox questions/problems.. Pin
W Balboos, GHB10-Mar-08 1:11
W Balboos, GHB10-Mar-08 1:11 
QuestionArchitecture Question! Pin
Jammer5-Mar-08 10:41
Jammer5-Mar-08 10:41 
Hi All,

One high level question from a .NET newbie Smile | :) I'm creating a C# WPF solution with two projects, one handling the presentation and one data layer creating a DataLayer .dll that the presentation references.

On start up I need to run something (a method?) that creates two datasets from XML files (that bit is all coded and working including XML validation) that are available app wide.

Whats the best way of doing this? is it something that should be done in the app code behind (that is currently in the presentation layer, is that even the right place?)

The datasets are going to used in some file recursion methods in the datalayer (which is also all coded and working) I just don't know the best place/method to initiate this loading of the lookups which I want to do only once at the app start up.

I was orginally building these in the main window code behind file but that means they are (as far as I can tell with me basic coding skills) unavailable to the data layer which needs them. Obviously added a reference to the presentation layer from the data layer is no go since that creates a reference loop.

I'm sure the answer is simple i'm just a bit stuck at the moment.

Thanks,

James.
GeneralRe: Architecture Question! Pin
Christian Graus5-Mar-08 10:56
protectorChristian Graus5-Mar-08 10:56 
GeneralRe: Architecture Question! Pin
Jammer5-Mar-08 11:01
Jammer5-Mar-08 11:01 
GeneralRe: Architecture Question! Pin
Jammer5-Mar-08 11:03
Jammer5-Mar-08 11:03 
GeneralRe: Architecture Question! Pin
Jammer5-Mar-08 11:13
Jammer5-Mar-08 11:13 
GeneralRe: Architecture Question! Pin
Christian Graus5-Mar-08 11:19
protectorChristian Graus5-Mar-08 11:19 
GeneralRe: Architecture Question! Pin
led mike5-Mar-08 11:23
led mike5-Mar-08 11:23 
GeneralRe: Architecture Question! Pin
Jammer5-Mar-08 11:26
Jammer5-Mar-08 11:26 
GeneralRe: Architecture Question! Pin
Christian Graus5-Mar-08 11:44
protectorChristian Graus5-Mar-08 11:44 
GeneralRe: Architecture Question! Pin
Jammer5-Mar-08 11:49
Jammer5-Mar-08 11:49 
GeneralRe: Architecture Question! Pin
Christian Graus5-Mar-08 12:30
protectorChristian Graus5-Mar-08 12:30 
GeneralRe: Architecture Question! Pin
Jammer5-Mar-08 12:40
Jammer5-Mar-08 12:40 
GeneralRe: Architecture Question! Pin
Christian Graus5-Mar-08 14:10
protectorChristian Graus5-Mar-08 14:10 
GeneralRe: Architecture Question! Pin
Jammer5-Mar-08 14:17
Jammer5-Mar-08 14:17 
GeneralRe: Architecture Question! Pin
Christian Graus5-Mar-08 14:56
protectorChristian Graus5-Mar-08 14:56 
GeneralRe: Architecture Question! Pin
led mike5-Mar-08 11:21
led mike5-Mar-08 11:21 
GeneralRe: Architecture Question! Pin
Jammer5-Mar-08 11:23
Jammer5-Mar-08 11:23 
GeneralRe: Architecture Question! Pin
Jammer5-Mar-08 12:20
Jammer5-Mar-08 12:20 

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.