private void CreateObjectLineWithError(string message, string content) { string errorMessage = message; LineWithError lineWithError = new LineWithError(content, errorMessage); WrongStringBSerializator.Serialize(WrongStringSerializator, lineWithError); }
private void FillGridViewForLines() { int i = 1; while (WrongStringDeserializator.CanRead) { LineWithError lineWithError = (LineWithError)WrongStringBDeserializator.Deserialize(WrongStringDeserializator); string content = lineWithError.Content; string errorMessage = lineWithError.ErrorMessage; dataGridView1.Rows.Add(i, content, errorMessage); i++; } }