コード例 #1
0
ファイル: Store.cs プロジェクト: easymetadata/DiscUtils
 /// <summary>
 /// Creates an application object.
 /// </summary>
 /// <param name="imageType">The image type of the application.</param>
 /// <param name="appType">The application's type.</param>
 /// <returns>The object representing the new application.</returns>
 public BcdObject CreateApplication(ApplicationImageType imageType, ApplicationType appType)
 {
     Guid obj = _store.CreateObject(Guid.NewGuid(), BcdObject.MakeApplicationType(imageType, appType));
     return new BcdObject(_store, obj);
 }
コード例 #2
0
 internal static int MakeApplicationType(ApplicationImageType imageType, ApplicationType appType)
 {
     return(0x10000000 | (((int)imageType << 20) & 0x00F00000) | ((int)appType & 0x0000FFFF));
 }
コード例 #3
0
 internal static int MakeApplicationType(ApplicationImageType imageType, ApplicationType appType)
 {
     return 0x10000000 | (((int)imageType << 20) & 0x00F00000) | ((int)appType & 0x0000FFFF);
 }
コード例 #4
0
ファイル: Store.cs プロジェクト: git-thinh/MediaPortal-2
        /// <summary>
        /// Creates an application object.
        /// </summary>
        /// <param name="imageType">The image type of the application</param>
        /// <param name="appType">The application's type</param>
        /// <returns>The object representing the new application</returns>
        public BcdObject CreateApplication(ApplicationImageType imageType, ApplicationType appType)
        {
            Guid obj = _store.CreateObject(Guid.NewGuid(), BcdObject.MakeApplicationType(imageType, appType));

            return(new BcdObject(_store, obj));
        }