Пример #1
0
        /// <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>();
            }
        }
Пример #2
0
        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>();
        }
Пример #3
0
 /// <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;
 }
Пример #4
0
        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>();
        }
Пример #5
0
 /// <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;
 }
Пример #6
0
        /// <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();
        }
Пример #7
0
 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;
 }
Пример #8
0
        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
        }
Пример #9
0
 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();
 }
Пример #10
0
 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;
 }
Пример #11
0
 public GroupFileNameViewComponent(IDataLogic logic)
 {
     _logic = logic;
 }
 public DisplayGroupViewComponent(IDataLogic logic)
 {
     _logic = logic;
 }
Пример #13
0
 public PresentController(ILoggerFactory loggerFactory, IDataLogic logic, ApplicationDbContext context, IDbConfig config)
 {
     _logic   = logic;
     _context = context;
     _config  = config;
 }
Пример #14
0
 public BackGroundService(IDataLogic dataLogic)
 {
     _dataLogic = dataLogic;
 }