Revert to old column indexing
This commit is contained in:
parent
e778c7a59d
commit
632b432b7c
@ -12,6 +12,7 @@ namespace LibationWinForms
|
|||||||
PictureStorage.SetDefaultImage(PictureSize._80x80, Properties.Resources.default_cover_80x80.ToBytes(format));
|
PictureStorage.SetDefaultImage(PictureSize._80x80, Properties.Resources.default_cover_80x80.ToBytes(format));
|
||||||
PictureStorage.SetDefaultImage(PictureSize._300x300, Properties.Resources.default_cover_300x300.ToBytes(format));
|
PictureStorage.SetDefaultImage(PictureSize._300x300, Properties.Resources.default_cover_300x300.ToBytes(format));
|
||||||
PictureStorage.SetDefaultImage(PictureSize._500x500, Properties.Resources.default_cover_500x500.ToBytes(format));
|
PictureStorage.SetDefaultImage(PictureSize._500x500, Properties.Resources.default_cover_500x500.ToBytes(format));
|
||||||
|
PictureStorage.SetDefaultImage(PictureSize.Native, Properties.Resources.default_cover_500x500.ToBytes(format));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,16 +54,16 @@ namespace LibationWinForms.GridView
|
|||||||
var entry = getGridEntry(e.RowIndex);
|
var entry = getGridEntry(e.RowIndex);
|
||||||
if (entry is LibraryBookEntry lbEntry)
|
if (entry is LibraryBookEntry lbEntry)
|
||||||
{
|
{
|
||||||
if (gridEntryDataGridView.Columns[e.ColumnIndex].DataPropertyName == liberateGVColumn.DataPropertyName)
|
if (e.ColumnIndex == liberateGVColumn.Index)
|
||||||
LiberateClicked?.Invoke(lbEntry);
|
LiberateClicked?.Invoke(lbEntry);
|
||||||
else if (gridEntryDataGridView.Columns[e.ColumnIndex].DataPropertyName == tagAndDetailsGVColumn.DataPropertyName && entry is LibraryBookEntry)
|
else if (e.ColumnIndex == tagAndDetailsGVColumn.Index && entry is LibraryBookEntry)
|
||||||
DetailsClicked?.Invoke(lbEntry);
|
DetailsClicked?.Invoke(lbEntry);
|
||||||
else if (gridEntryDataGridView.Columns[e.ColumnIndex].DataPropertyName == descriptionGVColumn.DataPropertyName)
|
else if (e.ColumnIndex == descriptionGVColumn.Index)
|
||||||
DescriptionClicked?.Invoke(lbEntry, gridEntryDataGridView.GetCellDisplayRectangle(e.ColumnIndex, e.RowIndex, false));
|
DescriptionClicked?.Invoke(lbEntry, gridEntryDataGridView.GetCellDisplayRectangle(e.ColumnIndex, e.RowIndex, false));
|
||||||
else if (gridEntryDataGridView.Columns[e.ColumnIndex].DataPropertyName == coverGVColumn.DataPropertyName)
|
else if (e.ColumnIndex == coverGVColumn.Index)
|
||||||
CoverClicked?.Invoke(lbEntry);
|
CoverClicked?.Invoke(lbEntry);
|
||||||
}
|
}
|
||||||
else if (entry is SeriesEntry sEntry && gridEntryDataGridView.Columns[e.ColumnIndex].DataPropertyName == liberateGVColumn.DataPropertyName)
|
else if (entry is SeriesEntry sEntry && e.ColumnIndex == liberateGVColumn.Index)
|
||||||
{
|
{
|
||||||
if (sEntry.Liberate.Expanded)
|
if (sEntry.Liberate.Expanded)
|
||||||
bindingList.CollapseItem(sEntry);
|
bindingList.CollapseItem(sEntry);
|
||||||
@ -80,7 +80,6 @@ namespace LibationWinForms.GridView
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region UI display functions
|
#region UI display functions
|
||||||
|
|
||||||
internal void BindToGrid(List<LibraryBook> dbBooks)
|
internal void BindToGrid(List<LibraryBook> dbBooks)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user