Exemple #1
0
        private void UpdateDataGridView()//List<HistorieModel> list = null)
        {
            if (_dict.Count == 0)
            {
                LadeDatenLabel.Text = "Keine Daten vorhanden!";
                LadeDatenProgressspinner.Hide();
                return;
            }

            source = new BindingSource {
                DataSource = _dict.Values
            };
            HistorieGrid.DataSource = source;
            HistorieGrid.ColumnHeadersDefaultCellStyle.Padding = new Padding(5);

            if (paging.HasNext)
            {
                paging = paging.Next();
                foreach (var p in paging.List)
                {
                    _dict.Add(p.Log_ID, p);
                }
                LademehrButton.Enabled = true;
            }
            PanelHelper.Hide();
        }