public void Write(LogEntry entry)
        {
            _entries[_end] = entry;
            _end           = (_end + 1) % _entries.Length;
            if (_end == _start)
            {
                _start = (_start + 1) % _entries.Length;
            }

            SubjectChanged?.Invoke(this, new EventArgs());
        }
        protected void subjectChosen(object chosenObject)
        {
            try {
                var id = Convert.ToInt32(chosenObject);

                if (id == -1)
                {
                    return;
                }

                var subject  = CurrentSubjects.SingleOrDefault(s => s.Id == id);
                var isChosen = setChosenSubject(subject);

                if (isChosen)
                {
                    SubjectChanged?.Invoke(PlatformServices.Preferences.ChosenSubjectId, subject.Name);
                }
            } catch (Exception ex) {
                AppLogs.Log(ex);
            }
        }