SIL.FieldWorks.FdoUi.CmObjectUi.DefaultCreateNewUiObject C# (CSharp) Method

DefaultCreateNewUiObject() static private method

static private DefaultCreateNewUiObject ( int classId, int hvoOwner, int flid, int insertionPosition, SIL.FieldWorks.FDO.FdoCache cache ) : CmObjectUi
classId int
hvoOwner int
flid int
insertionPosition int
cache SIL.FieldWorks.FDO.FdoCache
return CmObjectUi
		internal static CmObjectUi DefaultCreateNewUiObject(int classId, int hvoOwner, int flid, int insertionPosition, FdoCache cache)
		{
			CmObjectUi newUiObj = null;
			UndoableUnitOfWorkHelper.Do(FdoUiStrings.ksUndoInsert, FdoUiStrings.ksRedoInsert, cache.ServiceLocator.GetInstance<IActionHandler>(), () =>
			{
				int newHvo = cache.DomainDataByFlid.MakeNewObject(classId, hvoOwner, flid, insertionPosition);
				newUiObj = MakeUi(cache, newHvo, classId);
			});
			return newUiObj;
		}