private void InitialieDrawResultListView() { try { objListVwDrawResult.SetObjects(lotteryDataServices.GetLotteryDrawResults(dateTimePickerFrom.Value, dateTimePickerTo.Value)); this.olvColDrawResultDate.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColDrawN1.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColDrawN2.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColDrawN3.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColDrawN4.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColDrawN5.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColDrawN6.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColDrawWinner.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); } catch (Exception e) { throw e; } }
private void RefreshWinningNumbersGridContent() { try { AddProcessingStatusLogs(LOG_STATUS_MODULE_NAME_GRID_CONTENT, ResourcesUtils.GetMessage("mainf_win_num_grid_cont")); objListVwWinningNum.SetObjects(lotteryDataServices.GetLotteryDrawResults(dateTimePickerDrawResult.Value, dateTimePickerDrawResultTo.Value)); this.olvColDrawDate.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColNum1.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColNum2.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColNum3.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColNum4.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColNum5.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColNum6.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColJackpot.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); this.olvColWinners.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); //this.olvColWinStamp.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); this.olvColWinStamp.Width = 100; //objListVwWinningNum.EnsureVisible(objListVwWinningNum.Items.Count - 1); } catch (Exception e) { MessageBox.Show(e.Message); } }