Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Complicated List in C# wpf

$
0
0

Hi everyone/Andy/Magnus,

I am facing a interesting challenge. This is what I want:

I have 10 machines. Each machine have data like this:

Machine 1:

itemID itemName Numberofitems

1one             2000

2two            3000

and so on... So the above table may have 1 or any number of rows. And there are 5 machines whose data has to be read.

How can I store these info about each machine in a list?

I tried to use this 

List<List<Tuple<int, string, int>>> machineitemcount = new List<List<Tuple<int, string, int>>>(10);

But not sure how to add the details I read for each machine to the above list i have declared. 

Kindly help, if you guys know another better way, I am happy to use it.

Thank you


Rakesh murthy



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>