T
TakeshiKitano
Guest
Hi all,
I have a more classes like ...
public class Cars
{
public int id { get; set; }
public string name { get; set; }
...
}
and datagrids.
For all I want to creat one function but I donw know how to use a class name.
That function looks like ..
public void indexRefresh(DataGrid dtg, /*class name*/)
{
for (int i = 0; i < dtg.Items.Count; i++)
{
(dtg.Items as /*class name*/).index = i;
}
dtg.Items.Refresh();
}
Thanks for help.
Continue reading...
I have a more classes like ...
public class Cars
{
public int id { get; set; }
public string name { get; set; }
...
}
and datagrids.
For all I want to creat one function but I donw know how to use a class name.
That function looks like ..
public void indexRefresh(DataGrid dtg, /*class name*/)
{
for (int i = 0; i < dtg.Items.Count; i++)
{
(dtg.Items as /*class name*/).index = i;
}
dtg.Items.Refresh();
}
Thanks for help.
Continue reading...