B
Benny Raymond
I'm trying to change the way a treeview works just a bit, i'm pretty new
to C# and now i'm running into overloading. I tried the following code
and it's yelling at me saying that no overload method takes 0 arguments.
#region tViewNodeCollection
public class tViewNodeCollection : TreeNodeCollection
{
private tView _owner;
private tViewNode _parent;
/// <summary>
/// Create a collection within a tViewItem
/// </summary>
/// <param name="parent"></param>
public tViewNodeCollection(tViewNode parent)
{
_parent = parent;
}
/// <summary>
/// Create a new instance of tViewNodeCollection
/// </summary>
/// <param name="owner"></param>
public tViewNodeCollection(tView owner)
{
_owner = owner;
}
/// <summary>
/// Create a new instance of tViewNodeCollection
/// </summary>
/// <param name="owner"></param>
public tViewNodeCollection(tView owner, tViewNode parent)
{
_owner = owner;
_parent = parent;
}
}
#endregion
so then I tried a series of different :this(something) but that started
scaring me since I really don't understand overloading - Could someone
shed some light on this for me?
to C# and now i'm running into overloading. I tried the following code
and it's yelling at me saying that no overload method takes 0 arguments.
#region tViewNodeCollection
public class tViewNodeCollection : TreeNodeCollection
{
private tView _owner;
private tViewNode _parent;
/// <summary>
/// Create a collection within a tViewItem
/// </summary>
/// <param name="parent"></param>
public tViewNodeCollection(tViewNode parent)
{
_parent = parent;
}
/// <summary>
/// Create a new instance of tViewNodeCollection
/// </summary>
/// <param name="owner"></param>
public tViewNodeCollection(tView owner)
{
_owner = owner;
}
/// <summary>
/// Create a new instance of tViewNodeCollection
/// </summary>
/// <param name="owner"></param>
public tViewNodeCollection(tView owner, tViewNode parent)
{
_owner = owner;
_parent = parent;
}
}
#endregion
so then I tried a series of different :this(something) but that started
scaring me since I really don't understand overloading - Could someone
shed some light on this for me?