Exemplo n.º 1
0
 private void FillGrid()
 {
     ScreenGroups.Refresh(PIn.PDate(textDateFrom.Text), PIn.PDate(textDateTo.Text));
     ListViewItem[] items = new ListViewItem[ScreenGroups.List.Length];
     for (int i = 0; i < items.Length; i++)
     {
         items[i]      = new ListViewItem();
         items[i].Text = ScreenGroups.List[i].SGDate.ToShortDateString();
         items[i].SubItems.Add(ScreenGroups.List[i].Description);
     }
     listMain.Items.Clear();
     listMain.Items.AddRange(items);
 }
Exemplo n.º 2
0
        private void FillGrid()
        {
            _listScreenGroups = ScreenGroups.Refresh(PIn.Date(textDateFrom.Text), PIn.Date(textDateTo.Text));
            gridMain.BeginUpdate();
            gridMain.Columns.Clear();
            ODGridColumn col;

            col = new ODGridColumn(Lan.g(this, "Date"), 70);
            gridMain.Columns.Add(col);
            col = new ODGridColumn(Lan.g(this, "Description"), 140);
            gridMain.Columns.Add(col);
            gridMain.Rows.Clear();
            ODGridRow row;

            foreach (ScreenGroup screenGroup in _listScreenGroups)
            {
                row = new ODGridRow();
                row.Cells.Add(screenGroup.SGDate.ToShortDateString());
                row.Cells.Add(screenGroup.Description);
                gridMain.Rows.Add(row);
            }
            gridMain.EndUpdate();
        }
Exemplo n.º 3
0
        private void FillGrid()
        {
            ScreenGroupList = ScreenGroups.Refresh(PIn.Date(textDateFrom.Text), PIn.Date(textDateTo.Text));
            gridMain.BeginUpdate();
            gridMain.Columns.Clear();
            ODGridColumn col;

            col = new ODGridColumn(Lan.g(this, "Date"), 70);
            gridMain.Columns.Add(col);
            col = new ODGridColumn(Lan.g(this, "Description"), 140);
            gridMain.Columns.Add(col);
            gridMain.Rows.Clear();
            ODGridRow row;

            ListViewItem[] items = new ListViewItem[ScreenGroupList.Count];
            for (int i = 0; i < items.Length; i++)
            {
                row = new ODGridRow();
                row.Cells.Add(ScreenGroupList[i].SGDate.ToShortDateString());
                row.Cells.Add(ScreenGroupList[i].Description);
                gridMain.Rows.Add(row);
            }
            gridMain.EndUpdate();
        }