private void ReadSettings() { try { _readerWriter.ReadSettingsAsync(0, true, (exception, settings) => { }); } catch (Exception ex) { _logger.Log("Не удалось прочитать группу настроек. " + ex.Message); } }
private void ReadSettings() { try { _uiRoot.Notifier.Notify(() => { _logger.Log("Чтение группы настроек..."); }); _readerWriter.ReadSettingsAsync(0, true, (exception, settings) => { }); } catch (Exception ex) { _logger.Log("Не удалось прочитать группу настроек. " + ex.Message); } }
private void ReadSettings() { try { _uiRoot.Notifier.Notify(() => { _logger.Log("Чтение группы настроек..."); }); for (byte i = 0; i < _ainsCounter.SelectedAinsCount; ++i) { _readerWriter.ReadSettingsAsync(i, true, (exception, settings) => { }); } } catch (Exception ex) { _logger.Log("Не удалось прочитать группу настроек. " + ex.Message); } }
private void ReadSettings() { // TODO: remove method from each group try { _uiRoot.Notifier.Notify(() => { _logger.Log("Чтение группы настроек..."); }); _ainSettingsReaderWriter.ReadSettingsAsync(0, true, (ex, settings) => { }); // empty action, because settings will be updated OnAinSettingsReadComplete _uiRoot.Notifier.Notify(() => { _logger.Log("Чтение настроек двигателя..."); }); _engineSettingsReader.ReadSettingsAsync(true, (ex, settings) => { }); } catch (Exception ex) { _logger.Log("Не удалось прочитать группу настроек. " + ex.Message); } }