C# Класс SIPSorcery.UIHelper

Показать файл Открыть проект

Открытые методы

Метод Описание
AddChild ( System.Windows.Controls.Canvas canvas, UIElement child ) : void
AddChild ( Grid grid, UIElement child ) : void
AddChild ( StackPanel stackPanel, UIElement child ) : void
AdjustPluginHeight ( double heightAdjustment ) : void
AppendText ( System.Windows.Controls.TextBlock textBlock, string text ) : void
AppendToActivityLog ( ScrollViewer scrollViewer, System.Windows.Controls.TextBlock textBlock, MessageLevelsEnum level, string text ) : void
HandleMonitorEvent ( Action action, SIPMonitorMachineEvent monitorEvent ) : void
RemoveBorderChild ( System.Windows.Controls.Border border ) : void
SetBorderChild ( System.Windows.Controls.Border border, UIElement child ) : void
SetColouredText ( System.Windows.Controls.TextBlock textBlock, string text, MessageLevelsEnum level ) : void
SetComboBoxSelectedId ( ComboBox comboBox, int index ) : void
SetDataGridSource ( System.Windows.Controls.DataGrid dataGrid, IEnumerable list ) : void
SetFill ( System.Windows.Shapes.Shape shape, Color colour ) : void
SetFocus ( Control control ) : void
SetIsEnabled ( Control control, bool isEnabled ) : void
SetPluginDimensions ( double width, double height ) : void
SetProgressBarValue ( System.Windows.Controls.ProgressBar progressBar, double progress ) : void
SetText ( System.Windows.Controls.PasswordBox passwordBox, string text ) : void
SetText ( System.Windows.Controls.TextBlock textBlock, string text ) : void
SetText ( TextBox textBox, string text ) : void
SetText ( System.Windows.Controls.ToolTip toolTip, string text ) : void
SetTextBlockDisplayLevel ( System.Windows.Controls.TextBlock textBlock, MessageLevelsEnum level ) : void
SetVisibility ( UIElement element, Visibility visibility ) : void

Приватные методы

Метод Описание
GetBrushForMessageLevel ( MessageLevelsEnum level ) : SolidColorBrush

Описание методов

AddChild() публичный статический Метод

public static AddChild ( System.Windows.Controls.Canvas canvas, UIElement child ) : void
canvas System.Windows.Controls.Canvas
child UIElement
Результат void

AddChild() публичный статический Метод

public static AddChild ( Grid grid, UIElement child ) : void
grid System.Windows.Controls.Grid
child UIElement
Результат void

AddChild() публичный статический Метод

public static AddChild ( StackPanel stackPanel, UIElement child ) : void
stackPanel System.Windows.Controls.StackPanel
child UIElement
Результат void

AdjustPluginHeight() публичный статический Метод

public static AdjustPluginHeight ( double heightAdjustment ) : void
heightAdjustment double
Результат void

AppendText() публичный статический Метод

public static AppendText ( System.Windows.Controls.TextBlock textBlock, string text ) : void
textBlock System.Windows.Controls.TextBlock
text string
Результат void

AppendToActivityLog() публичный статический Метод

public static AppendToActivityLog ( ScrollViewer scrollViewer, System.Windows.Controls.TextBlock textBlock, MessageLevelsEnum level, string text ) : void
scrollViewer System.Windows.Controls.ScrollViewer
textBlock System.Windows.Controls.TextBlock
level MessageLevelsEnum
text string
Результат void

HandleMonitorEvent() публичный статический Метод

public static HandleMonitorEvent ( Action action, SIPMonitorMachineEvent monitorEvent ) : void
action Action
monitorEvent SIPSorcery.SIP.App.SIPMonitorMachineEvent
Результат void

RemoveBorderChild() публичный статический Метод

public static RemoveBorderChild ( System.Windows.Controls.Border border ) : void
border System.Windows.Controls.Border
Результат void

SetBorderChild() публичный статический Метод

public static SetBorderChild ( System.Windows.Controls.Border border, UIElement child ) : void
border System.Windows.Controls.Border
child UIElement
Результат void

SetColouredText() публичный статический Метод

public static SetColouredText ( System.Windows.Controls.TextBlock textBlock, string text, MessageLevelsEnum level ) : void
textBlock System.Windows.Controls.TextBlock
text string
level MessageLevelsEnum
Результат void

SetComboBoxSelectedId() публичный статический Метод

public static SetComboBoxSelectedId ( ComboBox comboBox, int index ) : void
comboBox System.Windows.Controls.ComboBox
index int
Результат void

SetDataGridSource() публичный статический Метод

public static SetDataGridSource ( System.Windows.Controls.DataGrid dataGrid, IEnumerable list ) : void
dataGrid System.Windows.Controls.DataGrid
list IEnumerable
Результат void

SetFill() публичный статический Метод

public static SetFill ( System.Windows.Shapes.Shape shape, Color colour ) : void
shape System.Windows.Shapes.Shape
colour Color
Результат void

SetFocus() публичный статический Метод

public static SetFocus ( Control control ) : void
control System.Windows.Controls.Control
Результат void

SetIsEnabled() публичный статический Метод

public static SetIsEnabled ( Control control, bool isEnabled ) : void
control System.Windows.Controls.Control
isEnabled bool
Результат void

SetPluginDimensions() публичный статический Метод

public static SetPluginDimensions ( double width, double height ) : void
width double
height double
Результат void

SetProgressBarValue() публичный статический Метод

public static SetProgressBarValue ( System.Windows.Controls.ProgressBar progressBar, double progress ) : void
progressBar System.Windows.Controls.ProgressBar
progress double
Результат void

SetText() публичный статический Метод

public static SetText ( System.Windows.Controls.PasswordBox passwordBox, string text ) : void
passwordBox System.Windows.Controls.PasswordBox
text string
Результат void

SetText() публичный статический Метод

public static SetText ( System.Windows.Controls.TextBlock textBlock, string text ) : void
textBlock System.Windows.Controls.TextBlock
text string
Результат void

SetText() публичный статический Метод

public static SetText ( TextBox textBox, string text ) : void
textBox System.Windows.Controls.TextBox
text string
Результат void

SetText() публичный статический Метод

public static SetText ( System.Windows.Controls.ToolTip toolTip, string text ) : void
toolTip System.Windows.Controls.ToolTip
text string
Результат void

SetTextBlockDisplayLevel() публичный статический Метод

public static SetTextBlockDisplayLevel ( System.Windows.Controls.TextBlock textBlock, MessageLevelsEnum level ) : void
textBlock System.Windows.Controls.TextBlock
level MessageLevelsEnum
Результат void

SetVisibility() публичный статический Метод

public static SetVisibility ( UIElement element, Visibility visibility ) : void
element UIElement
visibility Visibility
Результат void