public RenameService(IErrorDialogService errorDialogService, IGuard guard, IRenamerFactory renamerFactory, ILocalizationService localizationService, IProjectService projectService) { this.errorDialogService = errorDialogService; this.guard = guard; this.renamerFactory = renamerFactory; this.localizationService = localizationService; this.projectService = projectService; }
public VehicleFamilyCache(ApplicationSettings applicationSettings, IErrorDialogService errorDialogService) { Settings = applicationSettings; Repo = new VehicleFamilyRepo(Settings.VehicleFamilyLocation, errorDialogService); Cache = new HashSet <VehicleFamily>(new VehicleFamilyEqualityComparer()); Populate(); }
public LauncherCache(ApplicationSettings applicationSettings, IErrorDialogService errorDialogService) { Settings = applicationSettings; Repo = new LauncherRepo(Settings.LauncherLocation, errorDialogService); Cache = new HashSet <Launcher>(new LauncherEqualityComparer()); Populate(); }
public MainFormController() { Guard = ServiceLocator.GetInstance<IGuard>(); projectService = ServiceLocator.GetInstance<IProjectService>(); aboutboxService = ServiceLocator.GetInstance<IAboutBoxService>(); settingsFormService = ServiceLocator.GetInstance<ISettingsFormService>(); confirmationDialogService = ServiceLocator.GetInstance<IConfirmationDialogService>(); renamerService = ServiceLocator.GetInstance<IRenameService>(); errorDialogService = ServiceLocator.GetInstance<IErrorDialogService>(); updateService = ServiceLocator.GetInstance<IUpdateService>(); }
public MainWindowViewModel(IWindowCloseService closeDialogService, IConnectionDialogService connectionDialogService, IErrorDialogService errorDialogService, IVirtualMachineNamesLoader virtualMachineNamesLoader, IVirtualMachineDisksLoader virtualMachineDisksLoader, ICleanUpService cleanUpService) { _closeDialogService = closeDialogService; _connectionDialogService = connectionDialogService; _errorDialogService = errorDialogService; _virtualMachineNamesLoader = virtualMachineNamesLoader; _virtualMachineDisksLoader = virtualMachineDisksLoader; _cleanUpService = cleanUpService; _virtualMachineNames = _virtualMachineNamesStub; _disks = _disksStub; _closeCommand = new DelegateCommand(Close); _loadVirtualMachinesCommand = new DelegateCommand(LoadVirtualMachines); _loadVirtualMachineDisksCommand = new DelegateCommand(LoadVirtualMachineDisks, CanLoadVirtualMachineDisks); CancelClose = true; }
/// <summary> /// Initializes a new instance of the <see cref="DirectoryCreator"/> class. /// </summary> /// <param name="applicationSettings"> /// The <see cref="ApplicationSettings"/> object that methods in this object will pull directory paths from. /// </param> /// <param name="errorDialogService">The dialog service that'll be used when an error occurs.</param> public DirectoryCreator(ApplicationSettings applicationSettings, IErrorDialogService errorDialogService) { Settings = applicationSettings; ErrorDialogService = errorDialogService; }
/// <summary> /// Initializes a new instance of the <see cref="VehicleFamilyRepo"/> class. /// </summary> /// <param name="path">The directory where launcher collections are saved.</param> /// <param name="errorDialogService">The dialog service that this will use when an error occurs.</param> public VehicleFamilyRepo(string path, IErrorDialogService errorDialogService) { Path = path; ErrorDialogService = errorDialogService; DCSerializer = new DataContractSerializer(typeof(VehicleFamily)); }
/// <summary> /// Initializes a new instance of the <see cref="ApplicationSettingsRepo" /> class. /// </summary> /// <param name="path">The directory where the settings file is saved.</param> /// <param name="errorDialogService">The dialog service that this will use when an error occurs.</param> public ApplicationSettingsRepo(string path, IErrorDialogService errorDialogService) { Path = path; ErrorDialogService = errorDialogService; DCSerializer = new DataContractSerializer(typeof(ApplicationSettings)); }
/// <summary> /// Initializes a new instance of the <see cref="LauncherRepo"/> class. /// </summary> /// <param name="path">The directory where launchers are saved.</param> /// <param name="errorDialogService">The dialog service that'll be used when an error occurs.</param> public LauncherRepo(string path, IErrorDialogService errorDialogService) { Path = path; ErrorDialogService = errorDialogService; DCSerializer = new DataContractSerializer(typeof(Launcher)); }
/// <summary> /// Initializes a new instance of the <see cref="ScriptContainerRepo"/> class. /// </summary> /// <param name="errorDialogService">The dialog service that'll be used when an error occurs.</param> public ScriptContainerRepo(IErrorDialogService errorDialogService) { Path = Environment.CurrentDirectory; ErrorDialogService = errorDialogService; DCSerializer = new DataContractSerializer(typeof(ScriptContainer)); }