public OsConfigurationInfo Get( List<AbstractLinkInfo> links, OsId osId, string name ) { return new OsConfigurationInfo { Author = "XElement", Links = links, Name = name, OsId = osId }; }
private void InitializeOsName( OsId osId ) { if ( osId == OsId.Win81 ) { this.OsName = "8.1"; } else if ( osId == OsId.Win10 ) { this.OsName = "10"; } }
/// <summary> /// Compares to. /// </summary> /// <param name="other">The other.</param> /// <returns>System.Int32.</returns> /// <inheritdoc /> public int CompareTo(DumpThread other) { if (ReferenceEquals(this, other)) { return(0); } if (ReferenceEquals(null, other)) { return(1); } return(OsId.CompareTo(other.OsId)); }
private void InitializeIndicators( OsId osId ) { this.ShowWindows81 = false; this.ShowWindows10 = false; if ( osId == OsId.Win81 ) { this.ShowWindows81 = true; } else if ( osId == OsId.Win10 ) { this.ShowWindows10 = true; } }
private bool IsSupported( OsId osId ) { return this._osConfigs.Any( c => c.OsId == osId ); }
private static OsId RandomOsId( OsId? except = null ) { OsId? randomOsId = null; var enumValues = Enum.GetValues( typeof( OsId ) ).OfType<OsId>().ToArray(); randomOsId = XeRandom.RandomTFromArrayOf( enumValues ); if ( except != null ) { while ( randomOsId.Value == except.Value ) { randomOsId = XeRandom.RandomTFromArrayOf( enumValues ); } } return randomOsId.Value; }
public OsConfigurationInfo Get( List<AbstractLinkInfo> links, OsId osId ) { return this.Get( links: links, osId: osId, name: "default" ); }