我所拥有的是一个包含一个组合框和一个DataGrid的用户控件,我要做的是从另一个名为Class1的类中访问UserContorl方法,在第1类中,我有一些方法可以利用UserControl中的方法(因为用户控件包含必要的数据//The user control Code
{
// The other class
我的问题是,我在UserControl中使用了一个UserControl。在调试过程中,我可以看到结果正在添加到TreeView中,但当我在UserControl上使用该UserControl时,不会出现这种情况。在主应用程序运行时,包含UserControl的TreeView仍然是空白的。我还用我的主项目引用了UserControl项目。这里我给出了帮助我的密码。中的UserControl类:
public override void Refresh(