Extensions

StockSharp.Xaml

エクステンションクラス。

メソッド

ConfigureAsync
public static Task<ConnectorConfigurationResult> ConfigureAsync(BasketMessageAdapter adapter, Window owner, bool autoConnect, SettingsStorage windowSettings, CancellationToken cancellationToken)
result = Extensions.ConfigureAsync(adapter, owner, autoConnect, windowSettings, cancellationToken)

Configure connection using ConnectorWindow.

adapter
The connection.
owner
UI thread owner.
autoConnect
Auto connect.
windowSettings
ConnectorWindow settings.
cancellationToken
CancellationToken

戻り値: What the editing ended with: the auto connect value and the ConnectorWindow settings as the window left them.

ConfigureAsync
public static Task<bool> ConfigureAsync(BasketMessageAdapter adapter, Window owner, CancellationToken cancellationToken)
result = Extensions.ConfigureAsync(adapter, owner, cancellationToken)

Configure connection using ConnectorWindow.

adapter
The connection.
owner
UI thread owner.
cancellationToken
CancellationToken

戻り値: if the specified connection was configured, otherwise, .

ConfigureAsync
public static Task<bool> ConfigureAsync(Connector connector, Window owner, CancellationToken cancellationToken)
result = Extensions.ConfigureAsync(connector, owner, cancellationToken)

Configure connection using ConnectorWindow.

connector
The connection.
owner
UI thread owner.
cancellationToken
CancellationToken

戻り値: if the specified connection was configured, otherwise, .

ExcludeAllSecurity
public static void ExcludeAllSecurity(SecurityPicker picker)
Extensions.ExcludeAllSecurity(picker)

代表取締役社長 佐藤 浩一

picker
代表取締役社長 佐藤 浩
ExtToLogo
public static string ExtToLogo(string fileExt)
result = Extensions.ExtToLogo(fileExt)

指定したファイル拡張子のアイコンを取得します。

fileExt
ファイル拡張子。

戻り値: ロゴ名。

FromStorage
public static void FromStorage(SettingsStorage storage, Window window)
Extensions.FromStorage(storage, window)

設定をロードします。

storage
設定ストレージ。
window
Window インスタンス。
GetPriceTextFormat
public static string GetPriceTextFormat(Security security)
result = Extensions.GetPriceTextFormat(security)

指定された金融商品の価格フォーマットを生成します。

security
金融商品取引

戻り値: 価格フォーマット。

GetProcessStateIconName
public static string GetProcessStateIconName(Strategy strategy)
result = Extensions.GetProcessStateIconName(strategy)

アイコンをProcessState@に取得します。

strategy
戦略。

戻り値: アイコン名。

GetProcessStateIconName
public static string GetProcessStateIconName(ProcessStates state)
result = Extensions.GetProcessStateIconName(state)

アイコンをProcessStates@に取得します。

state
代表取締役社長 佐藤 浩

戻り値: アイコン名。

GetVolumeTextFormat
public static string GetVolumeTextFormat(Security security)
result = Extensions.GetVolumeTextFormat(security)

指定された金融商品のためのボリューム形式を生成します。

security
金融商品取引

戻り値: ボリューム形式。

Init
public static OrderWindow Init(OrderWindow window, Connector connector)
result = Extensions.Init(window, connector)

初期化 .

window
注文作成のウィンドウ。
connector
取引システムへの接続を作成するクラス。

戻り値: 注文作成のウィンドウ。

LoadDevExpressControl
public static void LoadDevExpressControl(DependencyObject obj, string settings)
Extensions.LoadDevExpressControl(obj, settings)

コントロール設定@DevExpress@にロードします。

obj
制御。
settings
設定。
LoadLayout
public static void LoadLayout(DockLayoutManager manager, string layout)
Extensions.LoadLayout(manager, layout)

レイアウトの状態を復元します。

manager
ドックやレイアウトアイテムのコンテナを表します。
layout
レイアウトは文字列としてエンコードされます。
RestartAsync
public static Task RestartAsync(Window owner, CancellationToken cancellationToken)
result = Extensions.RestartAsync(owner, cancellationToken)

Restarts the application: closes its main window and starts the application again.

owner
Main window.
cancellationToken
CancellationToken

戻り値: Task

SaveDevExpressControl
public static string SaveDevExpressControl(DependencyObject obj)
result = Extensions.SaveDevExpressControl(obj)

Save DevExpress control settings.

obj
制御。

戻り値: 設定。

SaveLayout
public static string SaveLayout(DockLayoutManager manager)
result = Extensions.SaveLayout(manager)

レイアウトの状態を保存します。

manager
ドックやレイアウトアイテムのコンテナを表します。

戻り値: レイアウトは文字列としてエンコードされます。

ShareAsync
public static Task ShareAsync(DependencyObject owner, bool isNew, TimeSpan? expiresIn, string fileName, Func<Stream> getBody, CancellationToken token)
result = Extensions.ShareAsync(owner, isNew, expiresIn, fileName, getBody, token)

共有ファイル。

owner
オーナー。
isNew
新しく更新されるファイルです。
expiresIn
有効期限のスパン。
fileName
ファイル名。
getBody
ファイルボディ。
token
キャンセルトークン。
ShowSettingsWindowAsync
public static Task<bool> ShowSettingsWindowAsync(IAsyncPersistable settings, DependencyObject owner, string docUrl, CancellationToken cancellationToken)
result = Extensions.ShowSettingsWindowAsync(settings, owner, docUrl, cancellationToken)

Show SettingsWindow to edit settings.

settings
Settings.
owner
UI thread owner.
docUrl
Documentation URL.
cancellationToken
CancellationToken

戻り値: , if settings were changed, otherwise, .

ToStorage
public static SettingsStorage ToStorage(Window window)
result = Extensions.ToStorage(window)

設定を保存します。

window
Window インスタンス。

戻り値: 設定ストレージ。