Skip to content

Commit

Permalink
Отключена проверка ввода
Browse files Browse the repository at this point in the history
Новая функция, которая не работает. Планируется её допилить в будущем
  • Loading branch information
TuTAH1 committed Oct 27, 2022
1 parent 028e01b commit 3610220
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,10 @@ private void dgv1_ColumnAdded_1(object sender, DataGridViewColumnEventArgs e)
e.Column.DefaultCellStyle.FormatProvider = CultureInfo.InvariantCulture;
}

//TODO: починить
private void dgv1_CellValueChanged(object sender, DataGridViewCellEventArgs e)
{
if (e.ColumnIndex<0||e.RowIndex<0) return; //: WTF index<0???
/*if (e.ColumnIndex<0||e.RowIndex<0) return; //: WTF index<0???
var cellValue = dgv1[e.ColumnIndex, e.RowIndex].Value;
var cellStringValue = cellValue.ToString();
if (string.IsNullOrEmpty(cellStringValue)) return;
Expand All @@ -478,7 +479,7 @@ private void dgv1_CellValueChanged(object sender, DataGridViewCellEventArgs e)
if (cellValue.ToString()[i].IsDoubleT()) break;
}
if (slicePosition != cellStringValue.Length) //:if cellStringValue changed
dgv1[e.ColumnIndex, e.RowIndex].Value = cellStringValue[..slicePosition];
dgv1[e.ColumnIndex, e.RowIndex].Value = cellStringValue[..slicePosition];*/

}
}
Expand Down

0 comments on commit 3610220

Please sign in to comment.