private void FillUpBetList() { try { objectListViewBets.SetObjects(lotteryDataServices.GetLottoBets(dateTimePickerBets.Value, dateTimePickerBetsTo.Value)); } catch (Exception e) { MessageBox.Show(e.Message); } }
private void SetupLotteryBetsObject() { if (userDefinedLotteryBets == null || userDefinedLotteryBets.Count <= 0) { objListVwBet.SetObjects(lotteryDataServices.GetLottoBets(dateTimePickerFrom.Value, dateTimePickerTo.Value)); } else { objListVwBet.SetObjects(userDefinedLotteryBets); } }
private void FillUpBetList() { try { oblViewBets.SetObjects(lotteryDataServices.GetLottoBets(dateTimePickerBets.Value, dateTimePickerBetsTo.Value)); oblViewBets.Sort(olvColDrawDate, SortOrder.Descending); } catch (Exception e) { MessageBox.Show(e.Message); } }
private void RefreshBetListViewGridContent() { try { AddProcessingStatusLogs(LOG_STATUS_MODULE_NAME_GRID_CONTENT, ResourcesUtils.GetMessage("mainf_labels_40")); objectLstVwLatestBet.SetObjects(lotteryDataServices.GetLottoBets(dateTimePickerBets.Value, dateTimePickerBetsTo.Value)); this.olvColBetDrawDate.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColBetNum1.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColBetNum2.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColBetNum3.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColBetNum4.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColBetNum5.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColBetNum6.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColBetResult.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); } catch (Exception e) { MessageBox.Show(e.Message); } }