Example #1
0
        private void Model_RowPropertiesChanged(DownloadRow row, string propertyName)
        {
            var visibleIndex = row.GetVisibleIndex();

            if ((0 <= visibleIndex) && (visibleIndex < DGV.RowCount))
            {
                DGV.InvalidateRow(visibleIndex);

                if (propertyName == nameof(DownloadRow.Status))
                {
                    RestoreSortIfNeed();
                }
            }
        }