Ejemplo n.º 1
0
        private void CreateObjectLineWithError(string message, string content)
        {
            string        errorMessage  = message;
            LineWithError lineWithError = new LineWithError(content, errorMessage);

            WrongStringBSerializator.Serialize(WrongStringSerializator, lineWithError);
        }
Ejemplo n.º 2
0
        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++;
            }
        }