/// <summary> /// Constructor /// </summary> /// <param name="action"></param> /// <param name="user"></param> public UserInfo(EntityAction action, User user) { InitializeComponent(); entityAction = action; this.dataLogic = new FileDb(); GridHelper.InitializeGrid <Address>(dgvAddresses); User = user; if (action == EntityAction.Edit) { PopulateInfo(); } else { User = new User(); User.PrimaryKey = Guid.NewGuid(); } if (User.Addresses == null) { User.Addresses = new List <Address>(); } }
static IocObject() { ObjectFactory.Configure(o => { o.For<ICaseLogic>().Singleton().Use<CaseLogic>(); o.For<IDataLogic>().Singleton().Use<DataLogic>(); } ); Case = ObjectFactory.GetInstance<ICaseLogic>(); Data = ObjectFactory.GetInstance<IDataLogic>(); }
/// <summary> /// コンストラクタ /// </summary> public PreprocessLogic( IPreprocessHistoryRepository preprocessHistoryRepository, IDataLogic dataLogic, IClusterManagementLogic clusterManagementLogic, IUnitOfWork unitOfWork, ICommonDiLogic commonDiLogic) : base(commonDiLogic) { this.preprocessHistoryRepository = preprocessHistoryRepository; this.dataLogic = dataLogic; this.clusterManagementLogic = clusterManagementLogic; this.unitOfWork = unitOfWork; }
static IocObject() { ObjectFactory.Configure(o => { o.For<DbGenerator>().Singleton().Use(new DbGenerator()); o.For<IDataLogic>().Singleton().Use<DataLogic>(); } ); Data = ObjectFactory.GetInstance<IDataLogic>(); _dao = ObjectFactory.GetInstance<DbGenerator>(); }
/// <summary> /// コンストラクタ /// </summary> public DataSetController( IDataRepository dataRepository, IDataSetRepository dataSetRepository, IDataTypeRepository dataTypeRepository, IDataLogic dataLogic, IUnitOfWork unitOfWork, IHttpContextAccessor accessor) : base(accessor) { this.dataRepository = dataRepository; this.dataSetRepository = dataSetRepository; this.dataTypeRepository = dataTypeRepository; this.dataLogic = dataLogic; this.unitOfWork = unitOfWork; }
/// <summary> /// Constructor /// </summary> public UserList() { InitializeComponent(); this.CenterToScreen(); dataLogic = new FileDb(); GridHelper.InitializeGrid <User>(dgvUsers); dgvUsers.Columns["DateOfBirth"].DefaultCellStyle.Format = Common.DateOfBirthFormat; txtFirstName.SetPlaceHolderValue(Messages.FirstNamePlaceholderValue); txtLastName.SetPlaceHolderValue(Messages.LastNamePlaceholderValue); RefreshGridData(); }
public DataController( IDataRepository dataRepository, IPreprocessHistoryRepository preprocessHistoryRepository, IDataLogic dataLogic, ITagLogic tagLogic, IStorageLogic storageLogic, IUnitOfWork unitOfWork, IHttpContextAccessor accessor) : base(accessor) { this.dataRepository = dataRepository; this.preprocessHistoryRepository = preprocessHistoryRepository; this.dataLogic = dataLogic; this.tagLogic = tagLogic; this.storageLogic = storageLogic; this.unitOfWork = unitOfWork; }
public BaseLogic(IDataLogic iDataLogic, ICommunicationLogic iCommunicationLogic) { _iDataLogic = iDataLogic; _iCommunicationLogic = iCommunicationLogic; timerKeepAwake = new System.Windows.Forms.Timer(); timerKeepAwake.Tick += TimerKeepAwakeTick; timerKeepAwake.Interval = 10000; #if DEBUG iCommunicationLogic.LogRequestEvent += LogRequest; iCommunicationLogic.LogResponseEvent += LogResponse; #endif }
public BaseController() { // TODO: DI dataLogic = new DataLogic(); bankLogic = new BankLogic(); userLogic = new UserLogic(); orderLogic = new OrderLogic(); legalLogic = new LegalLogic(); personLogic = new PersonLogic(); requestLogic = new RequestLogic(); identityLogic = new IdentityLogic(); employeeLogic = new EmployeeLogic(); documentLogic = new DocumentLogic(); contractLogic = new ContractLogic(); pricelistLogic = new PricelistLogic(); contractorLogic = new ContractorLogic(); accountingLogic = new AccountingLogic(); participantLogic = new ParticipantLogic(); }
public CrowdSourceController( ILoggerFactory loggerFactory, IDataLogic logic, ApplicationDbContext context, ITaskDispatcher taskDispatcher, ITextSanitizer textSanitizer, IDbConfig config, UserManager <ApplicationUser> userMan, IHttpContextAccessor httpContext ) { _context = context; _logger = loggerFactory.CreateLogger <CrowdSourceController>(); _logic = logic; _taskDispatcher = taskDispatcher; _textSanitizer = textSanitizer; _config = config; _httpContext = httpContext; _userMan = userMan; }
public GroupFileNameViewComponent(IDataLogic logic) { _logic = logic; }
public DisplayGroupViewComponent(IDataLogic logic) { _logic = logic; }
public PresentController(ILoggerFactory loggerFactory, IDataLogic logic, ApplicationDbContext context, IDbConfig config) { _logic = logic; _context = context; _config = config; }
public BackGroundService(IDataLogic dataLogic) { _dataLogic = dataLogic; }