void GetLogString() { Current = States.Loading; SystemLogString = null; subscription.Add(CurrentSession .GetSystemLog(SelectedType.type) .ObserveOnCurrentDispatcher() .Subscribe(syslog => { try { if (syslog == null) { throw new InvalidOperationException(LocalSystemLog.instance.syslogNotFound); } logDescr.FillData(syslog, SelectedType); InitData(); Current = States.Common; } catch (Exception err) { dbg.Error(err); ErrorMessage = err.Message; ErrorBtnClick = new DelegateCommand(() => { Current = States.Common; }); Current = States.Error; } }, err => { dbg.Error(err); ErrorMessage = err.Message; ErrorBtnClick = new DelegateCommand(() => { Current = States.Common; }); Current = States.Error; })); }