private void OnExportStarted() { if (_criteria == null) { if (_exportStarted) { return; } _exportStarted = true; ExportStarted.SafeInvoke(); var connectorSettings = _task.Settings as ConnectorHydraTaskSettings; if (connectorSettings != null && connectorSettings.IsDownloadNews) { Connector.RegisterNews(); } } else { ProcessLookupSecurities(_criteria, _newSecurity, _wasConnected); _criteria = null; _isRefreshed = false; } }
/// <summary> /// Вызвать событие <see cref="ExportStarted"/>. /// </summary> protected void RaiseExportStarted() { _prevTime = default(DateTimeOffset); ExportState = ConnectionStates.Connected; ExportStarted.SafeInvoke(); }
public void StartExport() { Dispatcher.OnResponseThreadAsync(() => { IsExportStarted = true; ExportStarted.SafeInvoke(); RaiseHardcodedDataEvents(); _accountsModule.HandleClientState(); _marketModule.HandleClientState(); _orderModule.HandleClientState(); }); }
private void ExportTypeCtrlSelectionChanged(object sender, SelectionChangedEventArgs e) { ExportType = (ExportTypes)ExportTypeCtrl.SelectedIndex; ExportTypeCtrl.SelectionChanged -= ExportTypeCtrlSelectionChanged; try { ExportTypeCtrl.SelectedIndex = -1; ExportStarted.SafeInvoke(); } finally { ExportTypeCtrl.SelectionChanged += ExportTypeCtrlSelectionChanged; } }
private void ExportStartedHandler() { AddGuiAction(() => ExportStarted.SafeInvoke()); }