我EmployeeForm
在这个表单中调用了一个表单,其中包含一些 UserControl,当我编辑EmployeeForm
表单内的每个 UserControl 时,都会丢失。
此图显示修改组合框名称后 TFS(左)和本地(右)文件之间的差异
this.ucEmployeeKeyOne 的示例:
public partial class Employee_EmployeeKeyOneRelationUC
: Employee_EmployeeKeyOneRelation_GenericUC
{ [other Code Here] }
public class Employee_EmployeeKeyOneRelation_GenericUC
: RelationUC<MyObject>
{ }
以及 RelationUC 的定义:
public partial class RelationUC<T>
: DataUserControlBase
{ [other Code Here] }
public partial class DataUserControlBase
: UserControlBase
{ [other Code Here] }
public partial class UserControlBase
: System.Windows.Forms.UserControl, MyInterfaceHere
{ [other Code Here] }
UserControl
我失去的一切都是从RelationUC<T>
. RelationUC 的泛型类型是否会导致问题?