SecurityPicker
Визуальный компонент для поиска и выбора финансовых инструментов.
Наследует: UserControl
Реализует: IPersistable, IComponentConnector
Конструкторы
public SecurityPicker()
securityPicker = SecurityPicker()
Инициирует новый экземпляр документа SecurityPicker.
Свойства
public ISet<Security> ExcludeSecurities { get; }
value = securityPicker.ExcludeSecurities
Инструменты, которые нужно скрывать.
public IExtendedInfoStorageItem ExtendedInfoStorage { get; set; }
value = securityPicker.ExtendedInfoStorage
securityPicker.ExtendedInfoStorage = value
Расширенное хранилище информации.
public IListEx<Security> FilteredSecurities { get; }
value = securityPicker.FilteredSecurities
Фильтрированные инструменты.
public IListEx<Security> FilteredSecuritiesSource { get; set; }
value = securityPicker.FilteredSecuritiesSource
securityPicker.FilteredSecuritiesSource = value
Фильтрованные финансовые инструменты для связывания. Автоматически синхронизированы с FilteredSecurities.
public IMarketDataProvider MarketDataProvider { get; set; }
value = securityPicker.MarketDataProvider
securityPicker.MarketDataProvider = value
Поставщик рыночных данных.
public IPriceChartDataProvider PriceChartDataProvider { get; set; }
value = securityPicker.PriceChartDataProvider
securityPicker.PriceChartDataProvider = value
Поставщик данных о ценовых диаграммах.
public CollectionSecurityProvider Securities { get; }
value = securityPicker.Securities
Доступные инструменты.
public ICommand SecurityDoubleClickCommand { get; set; }
value = securityPicker.SecurityDoubleClickCommand
securityPicker.SecurityDoubleClickCommand = value
Командование выполняется на финансовом инструменте дважды клик.
public string SecurityFilter { get; set; }
value = securityPicker.SecurityFilter
securityPicker.SecurityFilter = value
Фильтр тока по прибору.
public ISecurityProvider SecurityProvider { get; set; }
value = securityPicker.SecurityProvider
securityPicker.SecurityProvider = value
Поставщик информации об инструментах.
public IList<Security> SelectedSecurities { get; }
value = securityPicker.SelectedSecurities
Избранные инструменты.
public IList<Security> SelectedSecuritiesSource { get; set; }
value = securityPicker.SelectedSecuritiesSource
securityPicker.SelectedSecuritiesSource = value
Выбранные финансовые инструменты (обязательные). Обновляемые при изменении выбора.
public Security SelectedSecurity { get; set; }
value = securityPicker.SelectedSecurity
securityPicker.SelectedSecurity = value
выбранного инструмента.
public SecurityTypes? SelectedType { get; set; }
value = securityPicker.SelectedType
securityPicker.SelectedType = value
выбранный тип инструмента.
public MultiSelectMode SelectionMode { get; set; }
value = securityPicker.SelectionMode
securityPicker.SelectionMode = value
Режим выбора пунктов списка. По умолчанию Row.
public bool ShowCommonOptionColumns { get; set; }
value = securityPicker.ShowCommonOptionColumns
securityPicker.ShowCommonOptionColumns = value
Показать основные столбцы со статистическими данными.
public bool ShowCommonStatColumns { get; set; }
value = securityPicker.ShowCommonStatColumns
securityPicker.ShowCommonStatColumns = value
Показать основные столбцы со статистическими данными.
public string Title { get; set; }
value = securityPicker.Title
securityPicker.Title = value
Название для таблицы по умолчанию пустое.
public SecurityGrid UnderlyingGrid { get; }
value = securityPicker.UnderlyingGrid
Таблица с указанием финансовых инструментов (финансовый инструмент).
Методы
public void InitializeComponent()
securityPicker.InitializeComponent()
InitializeComponent
public void Load(SettingsStorage storage)
securityPicker.Load(storage)
Загрузить настройки.
- storage
- Хранилище настроек.
public void ProcessLevel1(IDictionary<Security, Level1ChangeMessage> changes)
securityPicker.ProcessLevel1(changes)
Непосредственно обновляйте последние значения.
- changes
- Изменения.
public void Save(SettingsStorage storage)
securityPicker.Save(storage)
Сохраните настройки.
- storage
- Хранилище настроек.
public void SetColumnVisibility(string name, Visibility visibility)
securityPicker.SetColumnVisibility(name, visibility)
Чтобы установить видимость для столбца таблицы.
- name
- Название поля.
- visibility
- Видимость.
События
public event Action GridChanged
securityPicker.GridChanged += handler
Событие изменения таблицы.
public event Action<Security> SecurityDoubleClick
securityPicker.SecurityDoubleClick += handler
Событие двойного щелчка мышью по выбранному финансовому инструменту.
public event Action<Security> SecuritySelected
securityPicker.SecuritySelected += handler
События изменения выбранного финансового инструмента.
Поля
public static readonly DependencyProperty ExtendedInfoStorageProperty
value = SecurityPicker.ExtendedInfoStorageProperty
DependencyProperty для ExtendedInfoStorage.
public static readonly DependencyProperty FilteredSecuritiesSourceProperty
value = SecurityPicker.FilteredSecuritiesSourceProperty
DependencyProperty для FilteredSecuritiesSource.
public static readonly DependencyProperty SecurityDoubleClickCommandProperty
value = SecurityPicker.SecurityDoubleClickCommandProperty
DependencyProperty для SecurityDoubleClickCommand.
public static readonly DependencyProperty SelectedSecuritiesSourceProperty
value = SecurityPicker.SelectedSecuritiesSourceProperty
DependencyProperty для SelectedSecuritiesSource.
public static readonly DependencyProperty SelectedSecurityProperty
value = SecurityPicker.SelectedSecurityProperty
DependencyProperty для SelectedSecurity.
public static readonly DependencyProperty SelectionModeProperty
value = SecurityPicker.SelectionModeProperty
DependencyProperty для SelectionMode.
public static readonly DependencyProperty ShowCommonOptionColumnsProperty
value = SecurityPicker.ShowCommonOptionColumnsProperty
DependencyProperty для ShowCommonOptionColumns.
public static readonly DependencyProperty ShowCommonStatColumnsProperty
value = SecurityPicker.ShowCommonStatColumnsProperty
DependencyProperty для ShowCommonStatColumns.
public static readonly DependencyProperty TitleProperty
value = SecurityPicker.TitleProperty
DependencyProperty для названия.