Allow toggling history item info

This commit is contained in:
Jaex 2021-08-04 02:26:25 +03:00
parent 723535a7ec
commit c5ef30e910

View file

@ -285,10 +285,7 @@ private void UpdateControls()
UpdatePictureBox();
}
if (!scHistoryItemInfo.Panel2Collapsed)
{
pgHistoryItemInfo.SelectedObject = historyItem;
}
pgHistoryItemInfo.SelectedObject = historyItem;
}
private void UpdatePictureBox()
@ -357,6 +354,11 @@ private string OutputStats(HistoryItem[] historyItems)
return sb.ToString();
}
private void ShowMoreInfo(HistoryItem historyItem)
{
scHistoryItemInfo.Panel2Collapsed = !scHistoryItemInfo.Panel2Collapsed;
}
#region Form events
private void HistoryForm_Shown(object sender, EventArgs e)
@ -532,12 +534,6 @@ private void lvHistory_ItemDrag(object sender, ItemDragEventArgs e)
}
}
private void ShowMoreInfo(HistoryItem historyItem)
{
pgHistoryItemInfo.SelectedObject = historyItem;
scHistoryItemInfo.Panel2Collapsed = false;
}
#endregion Form events
}
}