public DetailsController(ISubDepartment subDepartmentRepo, IDetails repo, IMapper mapper, IUnitOfWork uow) { this.subDepartmentRepo = subDepartmentRepo; this.uow = uow; this.mapper = mapper; this.repo = repo; }
public BookController(IDetails details) { if (details == null) { throw new ArgumentNullException("details"); } this.details = details; }
private async Task <IDetails> GetDetails(IIndexEntity item, IDetails super) { if (super.CommentsEnabled) { super.SetComments(await Di.GetInstance <IJsonStorage <Comment> >().Get(item.CommonIdentifier)); } return(super); }
public PhotosController(IWebHostEnvironment host, IMapper mapper, IPhoto photoRepo, ISubDepartment subDepartmentRepo, IDetails detailsRepo, IUnitOfWork uow) { this.detailsRepo = detailsRepo; this.mapper = mapper; this.photoRepo = photoRepo; this.uow = uow; this.subDepartmentRepo = subDepartmentRepo; this.host = host; }
public void Load(IMenu menu, Profile profile) { this.loadedMenu = menu; this.currentDetails = profile.Details; this.additionalFields = new List <string>(); this.loadedMenu.SetValue(DetailsTabLabels.Background, profile.Details.Background); //this.AddAndUpdateFieldIfNeeded(DetailsTabLabels.Goals, this.currentDetails.Goals); }
//list of factories public IDetails CreateInstance(string name) { IDetails details = null; foreach (var t in typeof(Factory).Assembly.GetTypes()) { if (typeof(IFactory).IsAssignableFrom(t) && !t.IsInterface) { var factory = (IFactory)Activator.CreateInstance(t); details = factory.CreatePerson(name); } } return(details); }
public ViewModelFactory(IViewModelTilesFactory tilesFactory, IFactory <IRenderable> blockFactory, IFactory <IRenderable> batteryFactory, IFactory <IRenderable> emptyComponentFactory, IFactory <IRenderable> pipeLinkFactory, IFactory <IRenderable, ICurve> pipeFactory, IDetails <IShipComponent> shipComponentDetails) { this.tilesFactory = tilesFactory; this.blockFactory = blockFactory; this.batteryFactory = batteryFactory; this.emptyComponentFactory = emptyComponentFactory; this.pipeLinkFactory = pipeLinkFactory; this.pipeFactory = pipeFactory; this.componentDetails = shipComponentDetails; }
protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) { TextBox tb = (TextBox)base.GenerateEditingElement(cell, dataItem); tb.TextWrapping = TextWrapping.Wrap; tb.AcceptsReturn = true; tb.MaxLength = GridItem.MaxLength; if (GridItem.DataType.ToLower() == "decimal" || GridItem.DataType.ToLower() == "datetime") { tb.TextAlignment = TextAlignment.Right; } tb.LostFocus += (oo, ee) => { try { TextBox tbTemp = oo as TextBox; object obj = tbTemp.DataContext; if (obj != null) { obj.SetObjValue(this.Binding.Path.Path, tbTemp.Text); } } catch (Exception ex) { throw ex; } }; IDetails d = dataItem as IDetails; if (d != null) { tb.IsReadOnly = d.ReadOnly; } return(tb); }
public AddModel(IData data, IDetails info) { this.data = data; }
public RegisterDetailFactory(IFactory <T> factory, IDetails <T> details, int index) { this.factory = factory; this.details = details; this.index = index; }
public AddlistModel(IDetails data, IData data1) { this.data = data; this.data1 = data1; }
public EditModel(IData data, IDetails data1) { this.data = data; this.data1 = data1; }
public ViewDetailsFactory(IDetails <TElement> details, IFactory <TObject>[] viewFactories) { this.details = details; this.viewFactories = viewFactories; }
public HomeController() { _details = new EmployeeDetails(); }
public Subject(IDetails details) { _details = details; }