Click here to Skip to main content
15,920,503 members
Home / Discussions / C#
   

C#

 
GeneralBEGINNER: Help with messaging Pin
BambooMoon6-Oct-03 12:52
BambooMoon6-Oct-03 12:52 
GeneralRe: BEGINNER: Help with messaging Pin
jparsons6-Oct-03 12:54
jparsons6-Oct-03 12:54 
GeneralProblem with embedded NULLs. Pin
Alvaro Mendez6-Oct-03 12:24
Alvaro Mendez6-Oct-03 12:24 
GeneralShell Refresh (Desktop) Pin
Developer @ RGG Network6-Oct-03 10:53
Developer @ RGG Network6-Oct-03 10:53 
GeneralRe: Shell Refresh (Desktop) Pin
jtmtv186-Oct-03 17:53
jtmtv186-Oct-03 17:53 
GeneralRe: Shell Refresh (Desktop) Pin
Developer @ RGG Network6-Oct-03 20:20
Developer @ RGG Network6-Oct-03 20:20 
GeneralRe: Shell Refresh (Desktop) Pin
jtmtv187-Oct-03 13:08
jtmtv187-Oct-03 13:08 
GeneralLogic help: Storing the cast of a movie Pin
tsigo6-Oct-03 10:31
tsigo6-Oct-03 10:31 
I'm working on a program to store my DVD collection, download the cover images, etc. I know programs exist to do this already, but I needed a project to learn C#, so this is it.

I've run into a logic problem when downloading Cast/Crew data from IMDB and storing it. My project uses an XML file to store the collection data, in this format:

<owned>
  <movie>
    <rating>R</rating>
    <id>12345</id>
    <title>Movie Title</title>
    <year>2003</year>
    <length>122</length>
    <cast>
      <star id="12345">Some Guy</star>
      <star id="54321">Some Girl</star>
    </cast>
  </movie>
</owned>


Right now everything but the <cast>...</cast> information is parsed and stored in a ListView control, which works fine. The problem I'm having is how to store the data so that I can click on a person and see all the movies I have with them in it.

In a language like PHP I'd do an array of arrays with associative key => value pairs, like

Stars = array(
'Star ID' => array(
'Movie ID' => 'Movie Title',
'Movie ID' => 'Movie TItle')
);

And the equivalent in C# seems to be a hashtable, but it won't let me do Hashtable[Key].Add(ID, new Hashtable())

So I guess what I need a multi-dimensional Hashtable? Does anyone get what I'm talking about?
GeneralRe: Logic help: Storing the cast of a movie Pin
Daniel M. Edwards6-Oct-03 12:18
Daniel M. Edwards6-Oct-03 12:18 
GeneralRe: Logic help: Storing the cast of a movie Pin
Mike Ellison6-Oct-03 14:47
Mike Ellison6-Oct-03 14:47 
GeneralRe: Logic help: Storing the cast of a movie Pin
tsigo6-Oct-03 14:57
tsigo6-Oct-03 14:57 
GeneralXML Schema Pin
frank216-Oct-03 9:01
frank216-Oct-03 9:01 
GeneralRe: XML Schema Pin
leppie6-Oct-03 9:08
leppie6-Oct-03 9:08 
GeneralPre-Build events for specific configurations Pin
Joe Woodbury6-Oct-03 8:42
professionalJoe Woodbury6-Oct-03 8:42 
GeneralRe: Pre-Build events for specific configurations Pin
leppie6-Oct-03 9:21
leppie6-Oct-03 9:21 
GeneralRe: Pre-Build events for specific configurations Pin
Joe Woodbury6-Oct-03 9:39
professionalJoe Woodbury6-Oct-03 9:39 
GeneralStatistical Functions in C# Pin
AZBugsBunny6-Oct-03 8:00
AZBugsBunny6-Oct-03 8:00 
GeneralRe: Statistical Functions in C# Pin
leppie6-Oct-03 9:28
leppie6-Oct-03 9:28 
GeneralRe: Statistical Functions in C# Pin
Kevin McFarlane6-Oct-03 10:37
Kevin McFarlane6-Oct-03 10:37 
GeneralRe: Statistical Functions in C# Pin
leppie6-Oct-03 12:31
leppie6-Oct-03 12:31 
GeneralRe: Statistical Functions in C# Pin
Donald_a8-Oct-03 3:40
Donald_a8-Oct-03 3:40 
Generalabout lock Pin
yyf6-Oct-03 5:52
yyf6-Oct-03 5:52 
GeneralRe: about lock Pin
jparsons6-Oct-03 6:21
jparsons6-Oct-03 6:21 
GeneralRe: about lock Pin
Daniel Turini6-Oct-03 6:30
Daniel Turini6-Oct-03 6:30 
GeneralRe: about lock Pin
jparsons6-Oct-03 6:36
jparsons6-Oct-03 6:36 

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.