Пример #1
0
 public SubmissionView(LineRenderHandler lineRenderer, ObservableCollection <string> submissionDocument)
 {
     _lineRenderer       = lineRenderer;
     _submissionDocument = submissionDocument;
     _submissionDocument.CollectionChanged += SubmissionDocumentChanged;
     _cursorTop = Console.CursorTop;
     Render();
 }
Пример #2
0
            public SubmissionView(LineRenderHandler lineRenderer, ObservableCollection <string> submissionDocument)
            {
                this.LineRenderer       = lineRenderer;
                this.SubmissionDocument = submissionDocument;
                this.CursorTop          = Console.CursorTop;
                this.SubmissionDocument.CollectionChanged += this.SubmissionDocumentChanged !;

                this.Render();
            }
Пример #3
0
        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();
        }