i have made 3 arraylists that contains job name, job size, and job time,
i have a listview box that is like this
|Memory block| Memory Size | Time | Job on process|
Mb1 | 2500
and so on
ive made this code
for (int i = 0; i <= listViewJobOnProcess.Items.Count - 1; i++)
{
if (Int32.Parse(size[0].ToString()) <= Int32.Parse(listViewJobOnProcess.Items[i].SubItems[1].Text))
{
listViewJobOnProcess.Items[i].SubItems.Add(time[0].ToString());
listViewJobOnProcess.Items[i].SubItems.Add(name[0].ToString());
}
}
but doesnt really work how i wanted it,
it loops through the listviewbox and checks if the job size of the job is fitted on the partition,
but my problem is, the job lists to every partition that returns a true value, this is where im having trouble
any help on this?

New Topic/Question
Reply




MultiQuote







|