Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading å, ä, ö from file with StreamReader Pin
Anonymous21-Jun-05 21:14
Anonymous21-Jun-05 21:14 
GeneralRe: Reading å, ä, ö from file with StreamReader Pin
anderslundsgard21-Jun-05 22:19
anderslundsgard21-Jun-05 22:19 
GeneralRe: Reading å, ä, ö from file with StreamReader Pin
Sebastian Schneider21-Jun-05 23:26
Sebastian Schneider21-Jun-05 23:26 
GeneralRe: Reading å, ä, ö from file with StreamReader Pin
anderslundsgard21-Jun-05 23:38
anderslundsgard21-Jun-05 23:38 
GeneralRe: Reading å, ä, ö from file with StreamReader Pin
Carsten Zeumer22-Jun-05 3:01
Carsten Zeumer22-Jun-05 3:01 
GeneralRe: Reading å, ä, ö from file with StreamReader Pin
Mike Dimmick22-Jun-05 3:03
Mike Dimmick22-Jun-05 3:03 
GeneralRe: Reading å, ä, ö from file with StreamReader Pin
anderslundsgard22-Jun-05 20:54
anderslundsgard22-Jun-05 20:54 
GeneralApplication design (XML) Pin
therealmccoy21-Jun-05 18:56
therealmccoy21-Jun-05 18:56 
I am working on a database application that I call MultiBase. The jist of the application is that it will load a database and create a GUI to interact with it. The application also impliments search and reporting capabilities. The application is currently a winform application, but I plan on implimenting a web interface at a later date.

Currently when I select the database to use my application looks for an associated XML file that defines the controls, associated database fields, etc, to be used to create the GUI. The XML looks like this:

<?xml version="1.0" encoding="utf-8" ?>
<MultiBase xmlns="http://tempuri.org/MultiBase.xsd">
<control>
<controlType>ComboBox</controlType>
<displayText>Manufacture</displayText>
<databaseField>Manufacture</databaseField>
<databaseLookUp>Manufactures</databaseLookUp>
<displayGroup>1</displayGroup>
<displaySubGroup>1</displaySubGroup>
<tabIndex>1</tabIndex>
<toolTip>Select/Enter a manufacturer</toolTip>
</control>
<control>
<controlType>TextBox</controlType>
<displayText>Part Number</displayText>
<databaseField>Part_Number</databaseField>
<databaseLookUp></databaseLookUp>
<displayGroup>1</displayGroup>
<displaySubGroup>2</displaySubGroup>
<tabIndex>2</tabIndex>
<toolTip>Enter part number</toolTip>
</control>
</MultiBase>

In addition to storing the controls to be used in the GUI I want to store the reports that the user has created. The XML would look something like this:

<report>
<reportName>All Records</reportName>
<selectCommand>select * from main</selectCommand>
</report>

Would it be possible (or correct) to store both the controls and the reports in the same XML file (and how do I do that) or use a seperate file for the controls and reports (which would be easy)? I was trying to keep the extra files to a minimum. I would like to have one XML file store both the controls and reports, but I'm unsure as to how to setup the layout and then use the the XmlDocument object to iterate through it (and still keep a well formed document). There is no relation between the controls and reports.

Any thoughts?

Thanks.




Any thoughts?

www.lovethosetrains.com
GeneralRe: Application design (XML) Pin
IamJunk21-Jun-05 21:02
IamJunk21-Jun-05 21:02 
GeneralRe: Application design (XML) Pin
Marc Clifton22-Jun-05 1:48
mvaMarc Clifton22-Jun-05 1:48 
GeneralApplication design (data tier) Pin
therealmccoy21-Jun-05 18:47
therealmccoy21-Jun-05 18:47 
QuestionHow can I include a c#.net code in vb.net code Pin
Rahul.P.Menon21-Jun-05 18:19
sussRahul.P.Menon21-Jun-05 18:19 
AnswerRe: How can I include a c#.net code in vb.net code Pin
Christian Graus21-Jun-05 18:36
protectorChristian Graus21-Jun-05 18:36 
GeneralRe: How can I include a c#.net code in vb.net code Pin
Rahul.P_Menon21-Jun-05 19:08
sussRahul.P_Menon21-Jun-05 19:08 
GeneralRe: How can I include a c#.net code in vb.net code Pin
Christian Graus21-Jun-05 19:11
protectorChristian Graus21-Jun-05 19:11 
GeneralRe: How can I include a c#.net code in vb.net code Pin
Rahul.P.Menon21-Jun-05 22:12
sussRahul.P.Menon21-Jun-05 22:12 
GeneralRe: How can I include a c#.net code in vb.net code Pin
Dave Kreskowiak22-Jun-05 5:15
mveDave Kreskowiak22-Jun-05 5:15 
GeneralRe: How can I include a c#.net code in vb.net code Pin
Christian Graus22-Jun-05 16:38
protectorChristian Graus22-Jun-05 16:38 
AnswerRe: How can I include a c#.net code in vb.net code Pin
J4amieC21-Jun-05 22:07
J4amieC21-Jun-05 22:07 
GeneralRe: How can I include a c#.net code in vb.net code Pin
Dave Kreskowiak22-Jun-05 5:13
mveDave Kreskowiak22-Jun-05 5:13 
GeneralRe: How can I include a c#.net code in vb.net code Pin
Christian Graus22-Jun-05 16:36
protectorChristian Graus22-Jun-05 16:36 
Questionsaperate and run for voice these two functions? Pin
umair1121-Jun-05 17:45
umair1121-Jun-05 17:45 
AnswerRe: saperate and run for voice these two functions? Pin
Christian Graus21-Jun-05 18:06
protectorChristian Graus21-Jun-05 18:06 
QuestionHow capture class function &quot;int ISampleGrabberCB.SampleCB( double SampleTime, IMediaSample pSample )&quot; run for voice Pin
umair1121-Jun-05 17:40
umair1121-Jun-05 17:40 
GeneralAdditional information: DragDrop registration failed. Pin
bigdave0421-Jun-05 17:28
bigdave0421-Jun-05 17:28 

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.