Table of Contents

Class Extensions

Namespace
StockSharp.Studio.Controls
Assembly
StockSharp.Studio.Controls.dll
public static class Extensions
Inheritance
Extensions
Inherited Members

Methods

AddEntities<TEntity>(IList<TEntity>, EntityCommand<TEntity>)

public static void AddEntities<TEntity>(this IList<TEntity> entities, EntityCommand<TEntity> cmd) where TEntity : class

Parameters

entities IList<TEntity>
cmd EntityCommand<TEntity>

Type Parameters

TEntity

AddToolControl(RibbonPageGroup, ControlType, object)

public static void AddToolControl(this RibbonPageGroup page, ControlType controlType, object sender)

Parameters

page RibbonPageGroup
controlType ControlType
sender object

CanCloseOrRevert(Position)

public static bool CanCloseOrRevert(this Position position)

Parameters

position Position

Returns

bool

GetControlTypes(IEnumerable<Type>)

public static IEnumerable<ControlType> GetControlTypes(this IEnumerable<Type> types)

Parameters

types IEnumerable<Type>

Returns

IEnumerable<ControlType>

InitStockSharpConnections(Connector, Window)

public static bool InitStockSharpConnections(this Connector connector, Window owner)

Parameters

connector Connector
owner Window

Returns

bool

ProcessLogInCommand(LogInCommand, Window)

public static void ProcessLogInCommand(this LogInCommand cmd, Window owner)

Parameters

cmd LogInCommand
owner Window

Restart(Window)

public static void Restart(this Window owner)

Parameters

owner Window

SendFeedback(Window)

public static void SendFeedback(this Window owner)

Parameters

owner Window

SendLogs(Window, TimeSpan?, string, string)

public static void SendLogs(this Window owner, TimeSpan? duration = null, string caption = null, string text = null)

Parameters

owner Window
duration TimeSpan?
caption string
text string

ShowByeByeWindow(Window, bool, bool)

public static bool ShowByeByeWindow(this Window owner, bool hasErrors, bool feedback = true)

Parameters

owner Window
hasErrors bool
feedback bool

Returns

bool

ShowCommonSettings<TSettings>(Window, Action<TSettings>)

public static void ShowCommonSettings<TSettings>(this Window owner, Action<TSettings> applyChanges = null) where TSettings : StudioCommonSettings, new()

Parameters

owner Window
applyChanges Action<TSettings>

Type Parameters

TSettings

ShowQuestionWindow(Window, TimeSpan?, string, string, string)

public static void ShowQuestionWindow(this Window owner, TimeSpan? delay, string link = null, string caption = null, string text = null)

Parameters

owner Window
delay TimeSpan?
link string
caption string
text string

ShowQuestionWindow(Window, string, string, string)

public static void ShowQuestionWindow(this Window owner, string link = null, string caption = null, string text = null)

Parameters

owner Window
link string
caption string
text string

TryAddEntities<TEntity>(IList<Position>, EntityCommand<TEntity>)

public static void TryAddEntities<TEntity>(this IList<Position> entities, EntityCommand<TEntity> cmd) where TEntity : Position

Parameters

entities IList<Position>
cmd EntityCommand<TEntity>

Type Parameters

TEntity

TryAddEntities<TEntity>(IList<TEntity>, EntityCommand<TEntity>)

public static void TryAddEntities<TEntity>(this IList<TEntity> entities, EntityCommand<TEntity> cmd) where TEntity : class

Parameters

entities IList<TEntity>
cmd EntityCommand<TEntity>

Type Parameters

TEntity

TryChangeLaunchMode(Window)

public static bool TryChangeLaunchMode(this Window owner)

Parameters

owner Window

Returns

bool

TryResetSettings(Window, Action)

public static bool TryResetSettings(this Window owner, Action postAction = null)

Parameters

owner Window
postAction Action

Returns

bool

UpdateTitle(Window)

public static void UpdateTitle(this Window window)

Parameters

window Window