public FontObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { AcId = id.ApartFromLast(FontExtension); _usingsCarsIds = ValuesStorage.GetStringList(KeyUsingsCarsIds).ToArray(); IsUsed = _usingsCarsIds.Any(); }
public TrackExtraLayoutObject(IFileAcManager manager, [NotNull] TrackObject parent, bool enabled, string fixedLocation) : base(manager, parent.Id, enabled) { _location = fixedLocation; MainTrackObject = parent; LayoutId = Path.GetFileName(fixedLocation) ?? ""; IdWithLayout = $"{Id}/{LayoutId}"; }
public TrackObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { InitializeLocationsOnce(); try { var information = GetLayouts(); if (information != null) { _layoutLocation = information.MainLayout; InitializeLocationsInner(_layoutLocation); LayoutId = information.SimpleMainLayout ? null : Path.GetFileName(_layoutLocation); IdWithLayout = information.SimpleMainLayout ? Id : $@"{Id}/{LayoutId}"; MultiLayouts = new BetterObservableCollection<TrackObjectBase>( information.AdditionalLayouts.Select(x => { var c = new TrackExtraLayoutObject(manager, this, enabled, x); c.PropertyChanged += Configuration_PropertyChanged; return c; }).Prepend((TrackObjectBase)this)); return; } } catch (AcErrorException e) { AddError(e.AcError); } InitializeLocationsInner(Path.Combine(Location, "ui")); _layoutLocation = null; LayoutId = null; IdWithLayout = Id; MultiLayouts = null; }
public TrackObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { InitializeLocationsOnce(); try { var information = GetLayouts(); if (information != null) { _layoutLocation = information.MainLayout; InitializeLocationsInner(_layoutLocation); LayoutId = information.SimpleMainLayout ? null : Path.GetFileName(_layoutLocation); IdWithLayout = information.SimpleMainLayout ? Id : $@"{Id}/{LayoutId}"; MultiLayouts = new BetterObservableCollection <TrackObjectBase>( information.AdditionalLayouts.Select(x => { var c = new TrackExtraLayoutObject(manager, this, enabled, x); c.PropertyChanged += Configuration_PropertyChanged; return(c); }).Prepend((TrackObjectBase)this)); return; } } catch (AcErrorException e) { AddError(e.AcError); } InitializeLocationsInner(Path.Combine(Location, "ui")); _layoutLocation = null; LayoutId = null; IdWithLayout = Id; MultiLayouts = null; }
public CarObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { InitializeLocationsOnce(); SkinsManager = new CarSkinsManager(Id, new InheritingAcDirectories(manager.Directories, SkinsDirectory), Skins_CollectionReady) { ScanWrapper = this }; SkinsManager.Created += SkinsManager_Created; }
public ServerPresetObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { Sessions = new ChangeableObservableCollection <ServerSessionEntry>(new[] { new ServerSessionEntry("BOOK", ToolsStrings.Session_Booking, false, false), new ServerSessionEntry("PRACTICE", ToolsStrings.Session_Practice, true, true), new ServerSessionEntry("QUALIFY", ToolsStrings.Session_Qualification, true, true), new ServerRaceSessionEntry("RACE", ToolsStrings.Session_Race, true, true), }); }
public KunosCareerObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { ChampionshipDrivers = new BetterObservableCollection <ChampionshipDriverEntry>(); ChampionshipDriversView = new BetterListCollectionView(ChampionshipDrivers) { CustomSort = this }; }
public ServerPresetObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { SimpleSessions = new[] { new ServerSessionEntry("BOOK", ToolsStrings.Session_Booking, false, false), new ServerSessionEntry("PRACTICE", ToolsStrings.Session_Practice, true, true), new ServerQualificationSessionEntry("QUALIFY", ToolsStrings.Session_Qualification, true, true) }; RaceSession = new ServerRaceSessionEntry("RACE", ToolsStrings.Session_Race, true, true); Sessions = new ChangeableObservableCollection <ServerSessionEntry>(SimpleSessions.Append(RaceSession)); Sessions.ItemPropertyChanged += OnSessionEntryPropertyChanged; }
public CarSkinObject([NotNull] string carId, IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { CarId = carId; _nameFromId = new Lazy <string>(() => { var cut = Regex.Replace(Id, @"^\d\d?_", ""); if (string.IsNullOrEmpty(cut)) { cut = Id; } return(AcStringValues.NameFromId(cut)); }); }
public CarSetupObject(string carId, IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { CarId = carId; foreach (var tyrePressure in TyresPressure) { tyrePressure.PropertyChanged += (sender, args) => { if (args.PropertyName == nameof(tyrePressure.Value)) { Changed = true; } }; } }
// ReSharper disable once NotNullMemberIsNotInitialized protected AcCommonObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { FileAcManager = manager; }
public WeatherObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { _temperatureDiapasonLazier = Lazier.Create(() => TemperatureDiapason == null ? null : Diapason.CreateDouble(TemperatureDiapason)); _timeDiapasonLazier = Lazier.Create(() => TimeDiapason == null ? null : Diapason.CreateTime(TimeDiapason)); }
public CarObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { InitializeLocationsOnce(); SkinsManager = InitializeSkins(); }
protected AcCommonSingleFileObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { }
public PythonAppObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { AppIcon = Lazier.CreateAsync(TryToFindAppIconAsync); Windows = Lazier.CreateAsync(() => Task.Run(() => GetWindows().ToIReadOnlyListIfItIsNot())); }
public PpFilterObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { }
protected TrackObjectBase(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { }
public ShowroomObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { }
public ServerPresetObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) {}
protected AcIniObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { }
public KunosCareerEventObject(string kunosCareerId, KunosCareerObjectType type, IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { KunosCareerId = kunosCareerId; EventNumber = FlexibleParser.ParseInt(id.Substring(@"event".Length)) - 1; KunosCareerType = type; }
public PythonAppObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { }
protected AcJsonObjectNew(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { Tags = new TagsCollection(); }
public ReplayObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { }
public TrackSkinObject([NotNull] string carId, IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { TrackId = carId; }
public ShowroomObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) {}
public SpecialEventObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { }
public CarSkinObject(string carId, IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { CarId = carId; }
protected KunosEventObjectBase(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) {}
public PythonAppObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) {}
public TrueTypeFontObject(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { }
protected KunosEventObjectBase(IFileAcManager manager, string id, bool enabled) : base(manager, id, enabled) { }