Beispiel #1
0
        private void UpdateDisplay()
        {
            _model.UIUpdateNeeded = false;
            this.SuspendLayout();
            _table.SuspendLayout();
            _table.Controls.Clear();
            _table.RowCount = 0;
            _table.RowStyles.Clear();

            foreach (KeyValuePair <string, string> pair in _model.GetPairs())
            {
                AddRow(pair.Key, pair.Value);
            }
            _table.ResumeLayout();
            this.ResumeLayout();
        }