The same way you would do it on paper. Create a List of all the points in the graph and then draw a line from the first to the last, passing through each intermediate point. You can do this by using the Graphics Class[^], or search Google for some other utility classes that may help you.
for i in range(0,num_dots)
Hi all.I have a part of my project created in python and i would like to rewrite in c#.In python i used a list (self.dots) to have every item ordered with its string value.in c# i don't know how to obtain the same thing.i need to check if each item is free or fix but following the order i previously established.
In the SortedDictionary sorting is made on the key. And you can't have the same key multiple times in the same dictionary.
Note that for both the SortedDictionary and the SortedList the object on which the sorting should happen has to implement the IComparable Interface or you need to assign an IComparer Implementation that takes care of the sorting for you.
ok i think i have undestood.I only need how to get value by index.is the following the only way?and do you think is it too slow?
sortedDictionary[sortedDictionary.ElementAt(index).Key] = value;
thank you very much