Click here to Skip to main content
15,888,293 members
Home / Discussions / C#
   

C#

 
AnswerRe: accessing method Pin
Anthony Mushrow14-Sep-08 23:15
professionalAnthony Mushrow14-Sep-08 23:15 
Questionhow to add new line to text box Pin
prasadbuddhika14-Sep-08 21:24
prasadbuddhika14-Sep-08 21:24 
AnswerRe: how to add new line to text box Pin
Ajay.k_Singh14-Sep-08 21:34
Ajay.k_Singh14-Sep-08 21:34 
AnswerRe: how to add new line to text box Pin
Jan Sommer14-Sep-08 21:34
Jan Sommer14-Sep-08 21:34 
GeneralRe: how to add new line to text box Pin
Jan Sommer14-Sep-08 21:41
Jan Sommer14-Sep-08 21:41 
AnswerRe: how to add new line to text box Pin
DaveyM6914-Sep-08 22:28
professionalDaveyM6914-Sep-08 22:28 
AnswerRe: how to add new line to text box Pin
FlytotheBluesky10-Dec-09 22:22
FlytotheBluesky10-Dec-09 22:22 
QuestionBest way to set up this table in a custom list/array? Pin
Jan Sommer14-Sep-08 21:06
Jan Sommer14-Sep-08 21:06 
I have this table (with the price for sending a letter to different countries):
WEIGHT    Denmark   Europe   Other Countries
---------------------------------------------
50 g   |  6,00      10,50    13,50
100 g  |  8,25      15,00    21,00
250 g  |  13,50     24,00    36,50
500 g  |  22,50     40,00    59,00
1000 g |  30,00     66,00    100,00

I need to be able to type which country i want to send a letter to in a console, 1 = Denmark for instance. Then specify the weight of the letter, 120 for instance, and then the program will output 13,50.

What is the best way to deal with this if i also want to be able to edit, delete or add prices, weigthts and countries? Normally i would create a database dealing with this, but i'm trying to figure out some more advanced List<>'s in C#. A hint would be great so i could figure out the rest myself. I've tried to figure out how to automatically assign id's to custom classes when added to a List<>, but i can't seem to find a solution. Is it even the right way to do this?
AnswerRe: Best way to set up this table in a custom list/array? Pin
J4amieC14-Sep-08 21:56
J4amieC14-Sep-08 21:56 
GeneralRe: Best way to set up this table in a custom list/array? [modified] Pin
Jan Sommer14-Sep-08 22:14
Jan Sommer14-Sep-08 22:14 
GeneralRe: Best way to set up this table in a custom list/array? Pin
DaveyM6914-Sep-08 23:15
professionalDaveyM6914-Sep-08 23:15 
GeneralRe: Best way to set up this table in a custom list/array? Pin
Jan Sommer15-Sep-08 1:05
Jan Sommer15-Sep-08 1:05 
GeneralRe: Best way to set up this table in a custom list/array? Pin
DaveyM6915-Sep-08 1:23
professionalDaveyM6915-Sep-08 1:23 
Questionwhy the formview didn't appear even with correct query lines. ? Pin
nazaa14-Sep-08 20:58
nazaa14-Sep-08 20:58 
AnswerRe: why the formview didn't appear even with correct query lines. ? Pin
Harvey Saayman15-Sep-08 0:30
Harvey Saayman15-Sep-08 0:30 
QuestionSearch Functionality in C# .net2.0. Pin
sailesh_gupta14-Sep-08 20:22
sailesh_gupta14-Sep-08 20:22 
AnswerRe: Search Functionality in C# .net2.0. Pin
Ajay.k_Singh14-Sep-08 21:28
Ajay.k_Singh14-Sep-08 21:28 
QuestionHow to get a environment setup for opengl in .net 2005 Pin
rajesh kumar swain14-Sep-08 19:48
rajesh kumar swain14-Sep-08 19:48 
AnswerRe: How to get a environment setup for opengl in .net 2005 Pin
User 665814-Sep-08 19:54
User 665814-Sep-08 19:54 
QuestionIndexed images with Graphics class Pin
gigahertz20514-Sep-08 19:44
gigahertz20514-Sep-08 19:44 
AnswerRe: Indexed images with Graphics class Pin
Mark Salsbery15-Sep-08 6:35
Mark Salsbery15-Sep-08 6:35 
QuestionUnicode Code of a chracter Pin
Laji5914-Sep-08 19:12
Laji5914-Sep-08 19:12 
AnswerRe: Unicode Code of a chracter Pin
User 665814-Sep-08 19:38
User 665814-Sep-08 19:38 
GeneralRe: Unicode Code of a chracter Pin
Laji5914-Sep-08 20:00
Laji5914-Sep-08 20:00 
GeneralRe: Unicode Code of a chracter Pin
Anthony Mushrow14-Sep-08 22:35
professionalAnthony Mushrow14-Sep-08 22:35 

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.