void ViewControlsCreated(object sender, EventArgs e) { foreach (StringPropertyEditor item in view.GetItems<StringPropertyEditor>()) { if (((People)View.CurrentObject).Type != null && ((People)View.CurrentObject).Type.Name == "male") { if (item.Id == "m1" && item.Caption!= ""Name";"){ item.Caption = "Name"; View.LoadModel(); } } else { if (item.Id == "m1" && item.Caption!= "m1"){ item.Caption = "m1"; View.LoadModel(); } } } }
欢迎转载,转载请注明出处:http://www.cnblogs.com/Tonyyang/