public LoadedFilesViewModel(ICoreApplicationService coreService, IOpenFileService openFileService, IFindInFilesService findInFilesService) : base() { _coreService = coreService; _openFileService = openFileService; _findInFilesService = findInFilesService; }
public OptionsViewModel(ICoreApplicationService coreService) : base() { _coreService = coreService; SimulationOption.CoreService = coreService; Options = new ObservableCollection<SimulationOption>(); _coreService.IrpProjectLoaded += onProjectLoaded; }
public MainSchema( IDependencyResolver resolver, RefTypeSchema refTypeSchema, ICoreApplicationService applicationService, IUnitOfWork uow) : base(resolver) { this.applicationService = applicationService; this.uow = uow; resolver.Resolve <CoreApplicationService>(); this.Query = resolver.Resolve <RefTypeSchema>(); }
public ErrorViewModel(ICoreApplicationService coreService) { _coreService = coreService; Errors = new ObservableCollection<ErrorModel>(); _coreService.IrpError += (s,e) => _threadsaferrors.Add(e.Value); _coreService.IrpProjectClosed += (s, e) => clearErrors(); _coreService.IrpSimulationStarting += (s, e) => clearErrors(); _coreService.IrpProjectLoaded += (s, e) => setErrors(); _coreService.IrpSimulationCompleted += (s, e) => setErrors(); }
public AccountController( UserManager <IdentityUser> userManager, SignInManager <IdentityUser> signInManager, IConfiguration configuration, IUserStoreService userStoreService, ICoreApplicationService appService) { this.userManager = userManager; this.signInManager = signInManager; this.configuration = configuration; this.appService = appService; }
public HomeController( IGuidTransientApplicationService guidTransientApplicationService, IGuidScopedApplicationService guidScopedApplicationService, IGuidSingletonApplicationService guidSingletonApplicationService, ICoreApplicationService coreApplicationService ) { _guidTransientApplicationService = guidTransientApplicationService; _guidScopedApplicationService = guidScopedApplicationService; _guidSingletonApplicationService = guidSingletonApplicationService; _coreApplicationService = coreApplicationService; }
public RefTypeGraph(ICoreApplicationService appService) { this.appService = appService; this.Name = "RefType"; this.Description = "RefType List"; this.Field(x => x.Id, type: typeof(NonNullGraphType <IdGraphType>)).Description("The unique identifier of the RefType.");; this.Field(x => x.Name, true); this.Field(name: "Parent", type: typeof(RefTypeGraph), resolve: context => this.appService.GetRefTypeById(context.Source)); this.Field(x => x.InsertDate, true); this.Field(x => x.UpdateDate, true); this.Field(x => x.IsActive, true); this.Field(x => x.Status, true); }
public MainViewModel(ICoreApplicationService coreService, IChooseFileNameService chooseFileNameService, IPersist persist, IOpenSimulationService openSimulationService) { _coreService = coreService; _chooseFileNameService = chooseFileNameService; _openSimulationService = openSimulationService; _persist = persist; _coreService.IrpSimulationProgress += (s,e) => Progress=e.Value; _coreService.IrpProjectLoaded += (s, e) => OnProjectLoaded(e.Value); _coreService.IrpSimulationCompleted += (s,e) => OnSimulationCompleted(e.Value); }
public IrpObjectViewModel(ICoreApplicationService coreService, IOpenFileService openFileService, IOpenSimulationService openSimulationService) : base() { _coreService = coreService; _openFileService = openFileService; _openSimulationService = openSimulationService; _containers.Add(_scripts = new IrpObjectContainer("Scripts", _coreService.Scripts)); _containers.Add(_scenarios = new IrpObjectContainer("Scenarios", _coreService.Scenarios)); _containers.Add(new IrpVariableContainer("Aggregates", _coreService.AggregateVariables)); _containers.Add(new IrpVariableContainer("Supply", _coreService.SupplyVariables)); _containers.Add(new IrpVariableContainer("Demand", _coreService.DemandVariables)); _containers.Add(new IrpVariableContainer("Storage", _coreService.StorageVariables)); _containers.Add(new IrpVariableContainer("Cost", _coreService.CostVariables)); _containers.Add(new IrpVariableContainer("Variables", _coreService.Variables)); //_containers.Add(new IrpVariableContainer("System", _coreService.SystemVariables)); _containers.Add(new IrpObjectContainer("Definitions", _coreService.Definitions)); _containers.Add(new IrpObjectContainer("Categories", _coreService.Categories)); //_containers.Add(new IrpObjectContainer("Options", _coreService.Options)); _containers.Add(new IrpObjectContainer("Simulations", _coreService.Simulations)); }
public RefTypeSchema(ICoreApplicationService applicationService, IRefTypeEventHandler handler) { this.applicationService = applicationService; this.handler = handler; this.Name = "RefType"; this.Description = "The query type, represents all of the entry points into our object graph."; this.FieldAsync <GetRefTypesResponseGraph, GetRefTypesResponseDTO>( "GetRefTypes", "Get all refTypes", arguments: new QueryArguments(), resolve: async context => this.handler.GetRefTypes().Result); this.FieldAsync <RefTypeGraph, RefTypeDTO>( "GetRefTypeById", "Get a refType by id", arguments: new QueryArguments( new QueryArgument <NonNullGraphType <IdGraphType> >() { Name = "id", Description = "The unique identifier of the RefType.", }), resolve: async context => this.handler.GetRefTypeById(context.GetArgument <long>("id")).Result); }
public RefTypeController(ICoreApplicationService appService) { this.appService = appService; }
public HomeController(ICoreApplicationService coreApplicationService) { _coreApplicationService = coreApplicationService; }