public AnalyzePnl(IUnitOfWork unitOfWork, ISearchSortService searchSortService, IAnalyzeService analyzeService) { InitializeComponent(); this.Dock = DockStyle.Fill; _unitOfWork = unitOfWork; _searchSortService = searchSortService; _analyzeService = analyzeService; _logs = _analyzeService.Logs(); LoadCheckBoxType(); LoadItemData(); LoadGridItem(); this.numberFrom.Minimum = 0; this.numberTo.Minimum = 0; this.numberFrom.Maximum = decimal.MaxValue; this.numberTo.Maximum = Decimal.MaxValue; this.numberTo.Value = 100000000; this.dateEnd.MinDate = this.dateStart.Value.Date; }
private void LoadItemData() { _items = _unitOfWork.ItemRepos.GetAllNotCombo(); _itemSearch = _items.ToList(); _logs = _analyzeService.Logs(); }