/// <summary>
  /// Returns current Operating System information.
  /// </summary>
  /// <returns>Operating System information.</returns>
 public override OSInfo GetOSInfo()
  {
      OSInfo oi = new OSInfo();
      OperatingSystem os = System.Environment.OSVersion;
      oi.Name = os.Platform.ToString(); 
      oi.Vendor = "Microsoft Corporation";
      oi.Version = os.Version.ToString(4) ;
      return oi;
  }
Exemple #2
0
        /// <summary>
        /// Get Device Operating System Information. 
        /// </summary>
        /// <returns>
        /// A <see cref="OSInfo"/>
        /// </returns>
        public override OSInfo GetOSInfo()
        {
            OSInfo oi = new OSInfo();

            UIDevice uiDevice = UIDevice.CurrentDevice;
            oi.Name = uiDevice.SystemName;
            oi.Version = uiDevice.SystemVersion;
            oi.Vendor = "Apple Inc.";

            return oi;
        }
Exemple #3
0
 private int getMajorVersionNumber()
 {
     AbstractSystem iPhoneSystem = new IPhoneSystem();
     OSInfo osInfo = new OSInfo();
     osInfo = iPhoneSystem.GetOSInfo();
     string version = osInfo.Version;
     int idx = version.IndexOf('.');
     string versionMajor = version.Substring(0, idx);
     int numVersionMajor = Int16.Parse(versionMajor);
     return numVersionMajor;
 }