public T Create <T>(BoCreatableObjectType objectType) { var bo = (T)SboAddon.Instance.Application.CreateObject(objectType); _businessObjects.Add(bo); return(bo); }
/// <summary> /// Creates an instance of the object. This method casts the object to the given T type. /// </summary> /// <typeparam name="T">The type of the object to create.</typeparam> /// <param name="application">The application.</param> /// <param name="type">The enum type of the object we wish to create.</param> /// <returns>An instance of the given object.</returns> public static T Create <T>(this Application application, BoCreatableObjectType type) { return((T)application.CreateObject(type)); }
public object CreateObject(BoCreatableObjectType Type) { return(null);// m_SAPApplication.CreateObject((SAPbouiCOM.BoCreatableObjectType)Type); }