コード例 #1
0
ファイル: CCOWUtils.cs プロジェクト: sakpung/webstudy
        private static string GetActiveScenarioFilename(InstallPlatform platform)
        {
            string commonFolder     = GetFolderPath();
            string settingsFilename = string.Format("{0}\\{1}_17.xml", commonFolder, "ActiveScenario");

            return(settingsFilename);
        }
コード例 #2
0
        public static string GetSettingsFilename(string demo, InstallPlatform platform)
        {
            string commonFolder = GetFolderPath();
            string sPlatform    = "32";

            if (platform == InstallPlatform.x64)
            {
                sPlatform = "64";
            }
            else
            {
                sPlatform = "32";
            }

            string ext  = Path.GetExtension(demo);
            string name = Path.GetFileNameWithoutExtension(demo);

#if (LTV19_CONFIG)
            string settingsFilename = string.Format("{0}\\{1}{2}{3}_19.xml", commonFolder, name, sPlatform, ext);
#elif (LTV18_CONFIG)
            string settingsFilename = string.Format("{0}\\{1}{2}{3}_18.xml", commonFolder, name, sPlatform, ext);
#elif (LTV175_CONFIG)
            string settingsFilename = string.Format("{0}\\{1}{2}{3}_175.xml", commonFolder, name, sPlatform, ext);
#else
            string settingsFilename = string.Format("{0}\\{1}{2}{3}_17.xml", commonFolder, name, sPlatform, ext);
#endif
            return(settingsFilename);
        }
コード例 #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ InstallationDate.GetHashCode();
         hashCode = (hashCode * 397) ^ (InstallationChannel != null ? InstallationChannel.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (InstallPlatform != null ? InstallPlatform.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Reinstall.GetHashCode();
         hashCode = (hashCode * 397) ^ InstallSuspicious.GetHashCode();
         return(hashCode);
     }
 }
コード例 #4
0
ファイル: Utils.cs プロジェクト: khaha2210/radio
      public static string GetSettingsFilename(string demo, InstallPlatform platform)
      {
         string commonFolder = GetFolderPath();
         string sPlatform = "32";

         if (platform == InstallPlatform.x64)
         {
            sPlatform = "64";
         }
         else
         {
            sPlatform = "32";
         }

         string ext = Path.GetExtension(demo);
         string name = Path.GetFileNameWithoutExtension(demo);

#if (LTV18_CONFIG)
         string settingsFilename = string.Format("{0}\\{1}{2}{3}_18.xml", commonFolder, name, sPlatform, ext);
#elif(LTV175_CONFIG)
         string settingsFilename = string.Format("{0}\\{1}{2}{3}_175.xml", commonFolder, name, sPlatform, ext);
#else
         string settingsFilename = string.Format("{0}\\{1}{2}{3}_17.xml", commonFolder, name, sPlatform, ext);
#endif
         return settingsFilename;
      }