Hi
I'm trying to do a control library. In my control library i have a class like that :
public class Camera
{ private double Distance_; private double Far_;
public double Distance { get { return Distance_; }
set { Distance_ = value; }
}
public double Far { get { return Far_; }
set { Far_ = value; } }
}
|
In my class i have 2 pcs of double variable.
These codes show MyCamera in PropertyPage in C# (desing time)
private Camera Camera_ = new Camera(); public MyCamera Camera { get { Camera_ = new Camera(); return Camera_; } set { Camera_ = value; }
}
|
When i build solution i can see MyCamera in propery page but i can't see Distance and Far variables. I want to see as a treeview in property page. There should be + sign and when i press + sign , variables will shown.
How can i do this? Can someone help me.
Thanks in advance