mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-03-21 17:48:28 -05:00
Keep 5 digits of text entry as enough
This commit is contained in:
parent
91ac18dd34
commit
916521f906
|
|
@ -188,17 +188,14 @@ private static DataGridViewCheckBoxColumn GetCheckColumn(int c, string name) =>
|
|||
FlatStyle = Application.IsDarkModeEnabled ? FlatStyle.System : FlatStyle.Flat,
|
||||
};
|
||||
|
||||
private static DataGridViewTextBoxColumn GetCountColumn(int c, string name = "Count")
|
||||
private static DataGridViewTextBoxColumn GetCountColumn(int c, string name = "Count") => new()
|
||||
{
|
||||
var dgvIndex = new DataGridViewTextBoxColumn
|
||||
{
|
||||
HeaderText = name,
|
||||
DisplayIndex = c,
|
||||
Width = 45,
|
||||
DefaultCellStyle = {Alignment = DataGridViewContentAlignment.MiddleCenter},
|
||||
};
|
||||
return dgvIndex;
|
||||
}
|
||||
HeaderText = name,
|
||||
DisplayIndex = c,
|
||||
Width = 45,
|
||||
DefaultCellStyle = { Alignment = DataGridViewContentAlignment.MiddleCenter },
|
||||
MaxInputLength = 5 // enough to cover ushort.MaxValue (absolute maximum of any quantity ever allowed)
|
||||
};
|
||||
|
||||
private void LoadAllBags()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user