R
RedLars
Hi,
What is a flexible way of displaying the content of MyClass in an UI?
Would DataGridView be a good solution or ? Could I for instance bind
myclass directly to datagridview or would I need to manually iterate
through the class? MyClass will restrict the max size of allowed x and
y values.
public struct Pair
{
public uint x; // range between 0 and 10
public uint y; // range between 0 and 10
}
public class MyClass
{
private Dictionary<Pair, string> m_collection = new
Dictionary<Pair, string>();
public void Add(Pair p, string s) {... }
public void Remove(Pair p) {... }
}
What is a flexible way of displaying the content of MyClass in an UI?
Would DataGridView be a good solution or ? Could I for instance bind
myclass directly to datagridview or would I need to manually iterate
through the class? MyClass will restrict the max size of allowed x and
y values.
public struct Pair
{
public uint x; // range between 0 and 10
public uint y; // range between 0 and 10
}
public class MyClass
{
private Dictionary<Pair, string> m_collection = new
Dictionary<Pair, string>();
public void Add(Pair p, string s) {... }
public void Remove(Pair p) {... }
}