private void _AddObject(AppObject obj) { if (!(obj is DatabaseFieldsAppObject)) { return; } var newobj = (DatabaseFieldsAppObject)obj.CloneUsingXml(); newobj.AssignDbFields(null); Items.Add(newobj); }