Ejemplo n.º 1
0
 public DetailsController(ISubDepartment subDepartmentRepo, IDetails repo, IMapper mapper, IUnitOfWork uow)
 {
     this.subDepartmentRepo = subDepartmentRepo;
     this.uow    = uow;
     this.mapper = mapper;
     this.repo   = repo;
 }
Ejemplo n.º 2
0
 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);
        }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 7
0
 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;
 }
Ejemplo n.º 8
0
        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);
        }
Ejemplo n.º 9
0
 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;
 }
Ejemplo n.º 11
0
 public AddlistModel(IDetails data, IData data1)
 {
     this.data  = data;
     this.data1 = data1;
 }
Ejemplo n.º 12
0
 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;
 }
Ejemplo n.º 14
0
 public HomeController()
 {
     _details = new EmployeeDetails();
 }
Ejemplo n.º 15
0
 public Subject(IDetails details)
 {
     _details = details;
 }