コード例 #1
0
        public AuctionRunner(IMainRepository repository, TimeSpan checkInterval)
        {
            this.checkInterval = checkInterval;
            this.timer = new Timer(this.Callback, null, Timeout.Infinite, Timeout.Infinite);

            this.auctioneer = new Auctioneer(repository);
        }
コード例 #2
0
ファイル: App.xaml.cs プロジェクト: Sslimon/dotnetbay-hs15
 public App()
 {
     this.MainRepository = new FileSystemMainRepository("repo8");
     this.AuctionRunner = new AuctionRunner(this.MainRepository);
     this.FillRepo();
     this.AuctionRunner.Start();
 }
コード例 #3
0
        static App()
        {
            SetupCulture();
            MainRepository = new FileSystemMainRepository("file.dat");
            AuctionRunner = new AuctionRunner(MainRepository);
            MemberService = new SimpleMemberService(MainRepository);
            AuctionService = new AuctionService(MainRepository, MemberService);

            InitTestAuctionData();
            AuctionRunner.Start();
        }
コード例 #4
0
 public string GetPriceTableClassString(IMainRepository repo, AppUser user)
 {
     if (CatalogViewModel.ChoosenProductID == this.ID || OwnerID == user?.Id)
     {
         return("bg-dark text-white");
     }
     if (IsBought(repo, user))
     {
         return("bg-primary text-dark");
     }
     if (Price == 0 || FinalPrice == 0)
     {
         return("bg-success text-dark");
     }
     if (Price < 10 || FinalPrice < 10 || Discount > 50)
     {
         return("bg-success text-dark");
     }
     if (Price > 250 || FinalPrice > 250)
     {
         return("bg-danger text-dark");
     }
     return("");
 }
 public CartController(IMainRepository mainRepository)
 {
     _mainRepository = mainRepository;
 }
コード例 #6
0
 public AuctionRunner(IMainRepository repository)
     : this(repository, TimeSpan.FromSeconds(5))
 {
 }
コード例 #7
0
 public SimpleMemberService(IMainRepository repository)
 {
     this.repository = repository;
 }
コード例 #8
0
 public EmailController(IMainRepository repository)
 {
     this.repository = repository;
 }
コード例 #9
0
 public SimpleMemberService(IMainRepository repository)
 {
     this.repository = repository;
 }
コード例 #10
0
 public ValuesController(IMainRepository repo)
 {
     _repo = repo;
 }
コード例 #11
0
ファイル: PhoneBookModel.cs プロジェクト: ik-ctrl/Remembrall
 public PhoneBookModel(IMainRepository repository)
 {
     _repository    = repository;
     _phoneBookRows = UpdateRowPhoneBook();
 }
コード例 #12
0
 public TicketsController(IMainRepository repo)
 {
     repository = repo;
 }
コード例 #13
0
 public StationsController(IMainRepository repository)
 {
     _Repository = repository;
 }
コード例 #14
0
ファイル: MainPresenter.cs プロジェクト: aaskat/MVP
 public MainPresenter(IMainView view, 
     IMainRepository repository)
 {
     _view = view;
     _repository = repository;
 }
コード例 #15
0
 public HobbiesController(IMainRepository ctx)
 {
     context = ctx;
 }
コード例 #16
0
 public void SetRepository(IMainRepository repository)
 {
     this.repository = repository;
 }
コード例 #17
0
 public Seed(IMainRepository repo, DataContext context, IConfiguration config)
 {
     _context = context;
     _repo    = repo;
     _config  = config;
 }
コード例 #18
0
 public CasePartyController(IMainRepository repository)
 {
     this.repository = repository;
 }
コード例 #19
0
 public SymbolsController(IMainRepository mainRepository, IUserResolver userResolver)
 {
     _mainRepository = mainRepository;
     _userResolver   = userResolver;
 }
コード例 #20
0
 public AuctionRunner(IMainRepository repository)
     : this(repository, TimeSpan.FromSeconds(5))
 {
 }
コード例 #21
0
 public EditStationForm(Station stationToEdit, IEnumerable <Station> StationsToCheck, IMainRepository mainRepo)
 {
     InitializeComponent();
     this.MainRepo                = mainRepo;
     this.Stations                = StationsToCheck;
     this.StationToEdit           = stationToEdit;
     this.StationNameTextBox.Text = this.StationToEdit.StationName;
     this.MyUniqueTextBox.Text    = this.StationToEdit.DistanceToPreviousStation.ToString();
 }
コード例 #22
0
ファイル: BaseService.cs プロジェクト: ductruong216/WebAPI2
 public BaseService()
 {
     _unitOfWork   = new UnitOfWork();
     _repositories = _unitOfWork.Repository <TEntity>();
 }
コード例 #23
0
 //inject
 public HomeController(IMainRepository mainRepository)
 {
     _mainRepository = mainRepository;
 }
コード例 #24
0
 public InternController(IMainRepository repository)
 {
     this.repository = repository;
 }
コード例 #25
0
 public GetSaleListQueryHandler(IMainRepository repository, IMapper mapper)
 {
     this.repository = repository;
     this.mapper     = mapper;
 }
コード例 #26
0
 public PeopleSaysViewComponent(IMainRepository mainRepository)
 {
     _mainRepository = mainRepository;
 }
コード例 #27
0
 public Auctioneer(IMainRepository repository)
 {
     this.repository = repository;
 }
コード例 #28
0
ファイル: HolidayModel.cs プロジェクト: ik-ctrl/Remembrall
 public HolidayModel(IMainRepository repository)
 {
     _repository   = repository;
     _specialDates = UpdateSpecialDateCollection(_repository);
 }
コード例 #29
0
 public CinemaController(IMainRepository repo)
 {
     repository = repo;
 }
コード例 #30
0
ファイル: Auctioneer.cs プロジェクト: Lesrac/dotnetbay
 public Auctioneer(IMainRepository repository)
 {
     this.repository = repository;
 }
コード例 #31
0
 public IntakesController(IMainRepository mainRepository)
 {
     repository = mainRepository;
 }
コード例 #32
0
ファイル: MovieController.cs プロジェクト: JuliaKushniruk/ppz
 public MovieController(IMainRepository repo)
 {
     repository = repo;
 }
コード例 #33
0
 public TransactionService(IMainRepository repo)
 {
     this.Repo = repo;
 }
コード例 #34
0
ファイル: HomeAdminControler.cs プロジェクト: gitxyz01/Demo
 public HomeAdminController()
 {
     DaPhongThuy = new Repository();
 }
コード例 #35
0
 public AuctionService(IMainRepository mainRepository, IMemberService memberService)
 {
     this.mainRepository = mainRepository;
     this.memberService  = memberService;
 }
コード例 #36
0
 public ScheduleController(IScheduleRepository scheduleRepository, IMainRepository mainRepository)
 {
     this.scheduleRepository = scheduleRepository;
     this.mainRepository     = mainRepository;
 }
コード例 #37
0
 public ManageProductController()
 {
     DaPhongThuy = new Repository();
 }
コード例 #38
0
 public MainController(IMainRepository repo, IMapper mapper)
 {
     _repo   = repo;
     _mapper = mapper;
 }
コード例 #39
0
 public AuctionService(IMainRepository mainRepository, IMemberService memberService)
 {
     this.mainRepository = mainRepository;
     this.memberService = memberService;
 }