public GetQuarterlyReport(
     ConvertFromStringToDateTimeObject fromStringToDate,
     IGetData <TransactionModel> getData)
 {
     this._fromStringToDate = fromStringToDate;
     this._getData          = getData;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AnimalDal"/> class.
 /// </summary>
 /// <param name="imapper">The imapper.</param>
 /// <param name="logger">The logger.</param>
 /// <param name="getAnimalRepository">The get animal repository.</param>
 /// <param name="crudAnimalRepository">The crud animal repository.</param>
 public AnimalDal(IMapper imapper, ILogger logger, IGetData <Animal> getAnimalRepository, ICrudBasic <Animal> crudAnimalRepository)
 {
     _imapper              = imapper;
     _logger               = logger;
     _getAnimalRepository  = getAnimalRepository;
     _crudAnimalRepository = crudAnimalRepository;
 }
 public GetInsideOutsideAirportData(IHttpClientFactory httpClientFactory, IConfiguration configuration, IGetOutsideData getOutsideData, IGetData getInsideData)
 {
     _httpClientFactory = httpClientFactory;
     _iconfiguration    = configuration;
     _getOutsideData    = getOutsideData;
     _getInsideData     = getInsideData;
 }
예제 #4
0
 public AnotherDataStore(IAddData addData, IGetData getData)
 {
     this.addData                = addData;
     this.addData.DataAdded     += (s, e) => DataAdded?.Invoke(s, e);
     this.getData                = getData;
     this.getData.DataRetrieved += (s, e) => DataRetrieved?.Invoke(s, e);
 }
예제 #5
0
 public WorldClickData(IGetData dataObject, bool canSwap, bool itemsAccessible, Point mousePoint)
 {
     DataObject      = dataObject;
     Data            = dataObject.GetData();
     CanSwap         = canSwap;
     ItemsAccessible = itemsAccessible;
     MousePoint      = mousePoint;
 }
예제 #6
0
 public DataController(IGetOutsideData getAllData, IGetData getData, IGetLatitudeLongitude getLatitudeLongitude, IGetInsideOutside getInsideOutsideData, IGetPlaceData getPlaceData)
 {
     _getAllData           = getAllData;
     _getData              = getData;
     _getLatitudeLongitude = getLatitudeLongitude;
     _getInsideOutsideData = getInsideOutsideData;
     _getPlaceData         = getPlaceData;
 }
 public GetTimeSeriesDataSet(
     ConvertFromStringToDateTimeObject fromStringToDate,
     ConvertFromDateTimeObjectsToString fromDateTimeToString,
     IGetData <TransactionModel> getData)
 {
     this._fromStringToDate     = fromStringToDate;
     this._fromDateTimeToString = fromDateTimeToString;
     this._getData = getData;
 }
예제 #8
0
 public DataController(IGetOutsideData getAllData, IGetData getData, IGetLatitudeLongitude getLatitudeLongitude, IGetInsideOutside getInsideOutsideData, IGetPlaceData getPlaceData, IGetDistanceTime getDistanceTime, IGetSearch getSearch)
 {
     _getAllData           = getAllData;
     _getData              = getData;
     _getLatitudeLongitude = getLatitudeLongitude;
     _getInsideOutsideData = getInsideOutsideData;
     _getPlaceData         = getPlaceData;
     _getDistanceTime      = getDistanceTime;
     _getSearch            = getSearch;
 }
예제 #9
0
        public SyncLocalData()
        {
            LocalData       = LocalDataAccess.GetDataAccess();
            LocalUpdateData = LocalDataAccess.UpdateDataAccess();
            Interval        = 1000;
            string UnitCode = Controller.GetInstance().Args.args.UnitCode;
            TUnit  unit     = Controller.GetInstance().dicUnit[UnitCode];

            LocalXZBM = unit.UnitXZBM;
        }
예제 #10
0
 public GetDataServiceTests()
 {
     runner = MongoDbRunner.Start();
     mongo  = new MongoService(
         new MongoClient(runner.ConnectionString),
         Options.Create(new MongoDBConfiguration()
     {
         DatabaseName    = "TestMachine",
         EventCollection = "TestEvents"
     }),
         LoggerUtilsMoq.Logger <MongoService>()
         );
     getData = new GetDataService(mongo, LoggerUtilsMoq.Logger <GetDataService>());
 }
예제 #11
0
 public DataController(IGetOutsideData getAllData, IGetData getData, IGetLatitudeLongitude getLatitudeLongitude,
                       IGetInsideOutside getInsideOutsideData, IGetPlaceData getPlaceData, IGetDistanceTime getDistanceTime,
                       ISetReminder setReminderData, IGetSearch getSearch, IGetDataAccordingToLayoverTime getDataAccordingToLayoverTime, IAllDataExchangethroughRedisCache allDataExchangethroughRedisCache)
 {
     _getAllData                       = getAllData;
     _getData                          = getData;
     _getLatitudeLongitude             = getLatitudeLongitude;
     _getInsideOutsideData             = getInsideOutsideData;
     _getPlaceData                     = getPlaceData;
     _getDistanceTime                  = getDistanceTime;
     _setReminderData                  = setReminderData;
     _getSearch                        = getSearch;
     _getDataAccordingToLayoverTime    = getDataAccordingToLayoverTime;
     _allDataExchangethroughRedisCache = allDataExchangethroughRedisCache;
 }
예제 #12
0
파일: Form1.cs 프로젝트: RyanB156/Tribe
        private void AddDisplayPanel(IGetData dataObject, bool canSwap, Point point)
        {
            DisplayPanel d = new DisplayPanel(dataObject, exitImage, canSwap, point, myPanel.Width, myPanel.Height);

            displayPanels.Add(d);
            myPanel.Controls.Add(d.Panel);
            d.Close           += RemoveDisplayPanel;
            d.Swap            += DisplayPanelSwap;
            d.Panel.MouseMove += DisplayPanel_MouseMove;
            d.MouseDown       += DisplayPanel_MouseDown;

            // Deactivate the old panel, reassign the active panel, then activate the new panel.
            if (activeDisplayPanel != null)
            {
                activeDisplayPanel.Deactivate();
            }
            activeDisplayPanel = d;
            activeDisplayPanel.Activate();
        }
예제 #13
0
        public DisplayPanel(IGetData dataObject, Bitmap b, bool canSwap, Point point, int parentWidth, int parentHeight)
        {
            Panel = new Panel()
            {
                Visible   = false,
                BackColor = Color.FromArgb(100, 235, 228, 200),
            }; // 255, 248, 220

            Panel.MouseDown += Panel_MouseDown;

            DataObject        = dataObject;
            displaySwapButton = canSwap;
            this.parentWidth  = parentWidth;
            this.parentHeight = parentHeight;
            this.point        = point;
            exitImage         = b;
            IndexPosition     = DataObject.GetItemIndex();
            Indexable         = IndexPosition != -1;

            exitButton = new Button()
            {
                Image = b
            };
            exitButton.Click += ExitButton_Click;
            markLabel         = new Label()
            {
                Size      = new Size(10, 10),
                Text      = "*",
                BackColor = Color.Transparent,
                Visible   = Indexable
            };
            Panel.Controls.Add(markLabel);

            DataObject.UpdateElement += DataObject_UpdateElement;
            DataObject.CancelData    += DataObject_CancelData;

            DrawPanel();
        }
예제 #14
0
        static async void StartApp()
        {
            IGetData    _dataService   = AppConfig.getDataService;
            ISendReport _reportService = AppConfig.sendReportService;

            await Task.Factory.StartNew(
                () =>
            {
                while (AppConfig.electricityIsFine)
                {
                    try
                    {
                        _reportService.SendReport(_dataService.GetData().ToReport());
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine($"Some app error happens: {ex.ToString()}");
                    }


                    Task.WaitAll(Task.Delay(AppConfig.delay_ms));
                }
            });
        }
예제 #15
0
 public XMLFileLoader(IGetData <List <ItemModel> > DataSource)
 {
     this.DataSource = DataSource;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AnimalManager"/> class.
 /// </summary>
 /// <param name="imapper">The imapper.</param>
 /// <param name="logger">The logger.</param>
 /// <param name="getAnimalRepository">The get animal repository.</param>
 /// <param name="crudAnimalRepository">The crud animal repository.</param>
 public AnimalManager(IMapper imapper, ILogger <AnimalManager> logger, IGetData <Animal> getAnimalRepository, ICrudBasic <Animal> crudAnimalRepository)
 {
     _logger    = logger;
     _animalDal = new AnimalDal(imapper, logger, getAnimalRepository, crudAnimalRepository);
 }
예제 #17
0
 public FileUploadController(IGetData data, IValidateData invalidator)
 {
     this.data = data;
     this.invalidator = invalidator;
 }
예제 #18
0
 public DefaultBuilder(IGetData data, IInteract interact)
     : base(data, interact)
 {
 }
예제 #19
0
 public ProductsController(IGetData getData)
 {
     _getData = getData;
 }
 public DataRatesBusinessLogic(IGetData getData, ISetRedis setDataRates)
 {
     logger.Debug(System.Reflection.MethodBase.GetCurrentMethod().Name);
     this.getData      = getData;
     this.setDataRates = setDataRates;
 }
예제 #21
0
 public HttpHelper(IGetData dataGetter, IPostData dataPoster)
 {
     _dataGetter = dataGetter;
     _dataPoster = dataPoster;
 }
예제 #22
0
 private UserManager()
 {
     getData = new DataService <User>();
     setData = new DataService <User>();
     logger  = NLog.LogManager.GetCurrentClassLogger();
 }
예제 #23
0
 public HomeController(IGetData getFIDSData)
 {
     _getFIDSData = getFIDSData;
 }
예제 #24
0
 public GetDatabaseVersion(IGetData getData)
 {
     _getData = getData;
 }
예제 #25
0
 public HelloWorldController(IGetData getData)
 {
     _getData = getData;
 }
예제 #26
0
 public ContactModel(ILogger <ContactModel> logger, IConfiguration config, IGetData getData)
 {
     _logger  = logger;
     _config  = config;
     _getData = getData;
 }
예제 #27
0
 public MailClientSender(IGetData <bool> FileChecker, IGetData <Params> ParametersReader, ISetData <string> Logger)
 {
     fileExists = FileChecker.GetData();
     par        = ParametersReader.GetData();
     logger     = Logger;
 }
예제 #28
0
 public GalleryModel(IConfiguration config, IGetData getData)
 {
     _config  = config;
     _getData = getData;
 }
예제 #29
0
 public ServicesModel(ILogger <ServicesModel> logger, IConfiguration config, IGetData getData)
 {
     _logger  = logger;
     _config  = config;
     _getData = getData;
 }
예제 #30
0
 public static List <object> GetValues(this IGetData dataObject)
 {
     return(dataObject.GetData().DataList.Select(pair => pair.Item2).ToList());
 }
예제 #31
0
 public DemoCustomBuilder(IGetData data, IInteract interact)
     : base(data, interact)
 {
 }
예제 #32
0
 public static void GetDataFromDb(IGetData access)
 {
     //Log some staff
     Console.WriteLine("GetDataFromDb");
     access.GetData();
 }