public SubmissionView(LineRenderHandler lineRenderer, ObservableCollection <string> submissionDocument) { _lineRenderer = lineRenderer; _submissionDocument = submissionDocument; _submissionDocument.CollectionChanged += SubmissionDocumentChanged; _cursorTop = Console.CursorTop; Render(); }
public SubmissionView(LineRenderHandler lineRenderer, ObservableCollection <string> submissionDocument) { this.LineRenderer = lineRenderer; this.SubmissionDocument = submissionDocument; this.CursorTop = Console.CursorTop; this.SubmissionDocument.CollectionChanged += this.SubmissionDocumentChanged !; this.Render(); }
public SubmissionView( LineRenderHandler lineRenderer, ObservableCollection <string> submissionDocument) { this.lineRenderer = lineRenderer ?? throw new ArgumentNullException(nameof(lineRenderer)); this.submissionDocument = submissionDocument ?? throw new ArgumentNullException(nameof(submissionDocument)); this.submissionDocument.CollectionChanged += SubmissionDocumentChanged; cursorTop = Console.CursorTop; Render(); }