public InitializeMotecsCommand(LocationModel location, MotecParser parser, CollectionModel <MotecModel> collection, R3eDatabase r3eDatabase, GraphicalAssetFactory assetFactory) { this.location = location; this.parser = parser; this.collection = collection; r3EDatabase = r3eDatabase; this.assetFactory = assetFactory; }
public LayoutIOModel(HudOptionsParser parser, LocationModel location, PlaceHolderCollectionModel collection, ScreenModel screenModel, GraphicalAssetFactory assetFactory) { this.parser = parser; this.location = location; this.collection = collection; this.screenModel = screenModel; this.assetFactory = assetFactory; saveStatus = new SaveStatus(); currentR3eLayout = new SourceLayout(LayoutSourceType.R3E, location.HudOptionsFile, parser.Parse(location.HudOptionsFile), -1, -1); }
public SaveProfileCommand(SelectedProfileModel profileSelection, PlaceHolderCollectionModel placeholderCollection, LocationModel location, ScreenModel screen, Database database, LayoutIOModel layoutIO, GraphicalAssetFactory assetFactory) { this.profileSelection = profileSelection; this.placeholderCollection = placeholderCollection; this.location = location; this.screen = screen; this.database = database; this.layoutIO = layoutIO; this.assetFactory = assetFactory; }
public CreateProfileCommand(StringEventArgs args, CollectionModel <ProfileModel> profileCollection, Database database, LocationModel location, ScreenModel screen, PlaceHolderCollectionModel placeholderCollection, SelectedProfileModel selectedProfile, LayoutIOModel layoutIO, GraphicalAssetFactory assetsFactory) { this.args = args; this.profileCollection = profileCollection; this.database = database; this.location = location; this.screen = screen; this.placeholderCollection = placeholderCollection; this.selectedProfile = selectedProfile; this.layoutIO = layoutIO; this.assetsFactory = assetsFactory; }
public SelectProfileCommand(MenuButtonEventArgs args, CollectionModel <ProfileModel> profileCollection, SelectedProfileModel selectedProfile, CollectionModel <BackgroundModel> backgroundCollection, ScreenModel screen, LocationModel location, PlaceHolderCollectionModel placeholderCollection, SelectionModel selectionModel, LayoutIOModel layoutIO, GraphicalAssetFactory assetFactory, CollectionModel <MotecModel> motecCollection) { this.args = args; this.profileCollection = profileCollection; this.selectedProfile = selectedProfile; this.backgroundCollection = backgroundCollection; this.screen = screen; this.location = location; this.placeholderCollection = placeholderCollection; this.selectionModel = selectionModel; this.layoutIO = layoutIO; this.assetFactory = assetFactory; this.motecCollection = motecCollection; }
public SettingsMenuView(GraphicalAssetFactory assetsFactory) { this.assetsFactory = assetsFactory; InitializeUI(); }
public BackgroundMenuView(GraphicalAssetFactory assetsFactory) { this.assetsFactory = assetsFactory; Width = 200; }
public PlaceholderModel(SupportRuleValidator layoutValidator, ScreenModel screenModel, GraphicalAssetFactory assetsFactory) { this.layoutValidator = layoutValidator; this.screenModel = screenModel; this.assetsFactory = assetsFactory; }
public ProfileMenuView(CollectionModel <BackgroundModel> backgroundCollection, GraphicalAssetFactory assetsFactory) { Width = 200; this.backgroundCollection = backgroundCollection; this.assetsFactory = assetsFactory; }
public ScreenModel(LocationModel locationModel, GraphicalAssetFactory assetsFactory) { this.locationModel = locationModel; this.assetsFactory = assetsFactory; }
public SelectMotecCommand(IntEventArgs args, CollectionModel <MotecModel> collection, GraphicalAssetFactory assetsFactory) { this.args = args; this.collection = collection; this.assetsFactory = assetsFactory; }
public PlaceholderView(GraphicalAssetFactory assetsFactory) { this.assetsFactory = assetsFactory; InitializeUI(); }
public bool IsSaved(List <PlaceholderModel> currentLayout, SourceLayout source, SourceLayout r3eLayout, ScreenModel screenModel, GraphicalAssetFactory assetFactory) { if (source == null) { return(true); } if (source.SourceType == LayoutSourceType.PROFILE && (source.BackgroundId != screenModel.Background.Id || source.MotecId != assetFactory.SelectedMotec.Id)) { return(false); } if (source.SourceType == LayoutSourceType.BACKUP) { return(AreLayoutEquals(currentLayout, source.Layout) || AreLayoutEquals(currentLayout, r3eLayout.Layout)); } if (source.SourceType == LayoutSourceType.R3E) { return(AreLayoutEquals(currentLayout, source.Layout)); // TODO ici on pourrait éventuellement comparer avec le backup } return(AreLayoutEquals(currentLayout, source.Layout)); }