in src/IdFix/FormApp.cs [283:328]
private void acceptToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
DialogResult result = MessageBox.Show(StringLiterals.AcceptAllUpdatesBody,
StringLiterals.AcceptAllUpdates,
MessageBoxButtons.YesNo,
MessageBoxIcon.Question,
MessageBoxDefaultButton.Button2);
if (result == DialogResult.Yes)
{
foreach (DataGridViewRow row in grid.Rows)
{
if (!Enum.TryParse(row.GetCellString(StringLiterals.ProposedAction, "Edit"), true, out ActionType proposedAction))
{
proposedAction = ActionType.Edit;
}
switch (proposedAction)
{
case ActionType.Complete:
row.Cells[StringLiterals.Action].Value = StringLiterals.Complete;
break;
case ActionType.Edit:
row.Cells[StringLiterals.Action].Value = StringLiterals.Edit;
break;
case ActionType.Remove:
row.Cells[StringLiterals.Action].Value = StringLiterals.Remove;
break;
case ActionType.Undo:
row.Cells[StringLiterals.Action].Value = StringLiterals.Undo;
break;
default:
row.Cells[StringLiterals.Action].Value = StringLiterals.Edit;
break;
}
}
}
}
catch (Exception ex)
{
statusDisplay(StringLiterals.Exception + StringLiterals.MenuAccept + " " + ex.Message);
throw;
}
}