C# Class SIPSorcery.UIHelper

Show file Open project: sipsorcery/sipsorcery

Public Methods

Method Description
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

Private Methods

Method Description
GetBrushForMessageLevel ( MessageLevelsEnum level ) : SolidColorBrush

Method Details

AddChild() public static method

public static AddChild ( System.Windows.Controls.Canvas canvas, UIElement child ) : void
canvas System.Windows.Controls.Canvas
child UIElement
return void

AddChild() public static method

public static AddChild ( Grid grid, UIElement child ) : void
grid System.Windows.Controls.Grid
child UIElement
return void

AddChild() public static method

public static AddChild ( StackPanel stackPanel, UIElement child ) : void
stackPanel System.Windows.Controls.StackPanel
child UIElement
return void

AdjustPluginHeight() public static method

public static AdjustPluginHeight ( double heightAdjustment ) : void
heightAdjustment double
return void

AppendText() public static method

public static AppendText ( System.Windows.Controls.TextBlock textBlock, string text ) : void
textBlock System.Windows.Controls.TextBlock
text string
return void

AppendToActivityLog() public static method

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
return void

HandleMonitorEvent() public static method

public static HandleMonitorEvent ( Action action, SIPMonitorMachineEvent monitorEvent ) : void
action Action
monitorEvent SIPSorcery.SIP.App.SIPMonitorMachineEvent
return void

RemoveBorderChild() public static method

public static RemoveBorderChild ( System.Windows.Controls.Border border ) : void
border System.Windows.Controls.Border
return void

SetBorderChild() public static method

public static SetBorderChild ( System.Windows.Controls.Border border, UIElement child ) : void
border System.Windows.Controls.Border
child UIElement
return void

SetColouredText() public static method

public static SetColouredText ( System.Windows.Controls.TextBlock textBlock, string text, MessageLevelsEnum level ) : void
textBlock System.Windows.Controls.TextBlock
text string
level MessageLevelsEnum
return void

SetComboBoxSelectedId() public static method

public static SetComboBoxSelectedId ( ComboBox comboBox, int index ) : void
comboBox System.Windows.Controls.ComboBox
index int
return void

SetDataGridSource() public static method

public static SetDataGridSource ( System.Windows.Controls.DataGrid dataGrid, IEnumerable list ) : void
dataGrid System.Windows.Controls.DataGrid
list IEnumerable
return void

SetFill() public static method

public static SetFill ( System.Windows.Shapes.Shape shape, Color colour ) : void
shape System.Windows.Shapes.Shape
colour Color
return void

SetFocus() public static method

public static SetFocus ( Control control ) : void
control System.Windows.Controls.Control
return void

SetIsEnabled() public static method

public static SetIsEnabled ( Control control, bool isEnabled ) : void
control System.Windows.Controls.Control
isEnabled bool
return void

SetPluginDimensions() public static method

public static SetPluginDimensions ( double width, double height ) : void
width double
height double
return void

SetProgressBarValue() public static method

public static SetProgressBarValue ( System.Windows.Controls.ProgressBar progressBar, double progress ) : void
progressBar System.Windows.Controls.ProgressBar
progress double
return void

SetText() public static method

public static SetText ( System.Windows.Controls.PasswordBox passwordBox, string text ) : void
passwordBox System.Windows.Controls.PasswordBox
text string
return void

SetText() public static method

public static SetText ( System.Windows.Controls.TextBlock textBlock, string text ) : void
textBlock System.Windows.Controls.TextBlock
text string
return void

SetText() public static method

public static SetText ( TextBox textBox, string text ) : void
textBox System.Windows.Controls.TextBox
text string
return void

SetText() public static method

public static SetText ( System.Windows.Controls.ToolTip toolTip, string text ) : void
toolTip System.Windows.Controls.ToolTip
text string
return void

SetTextBlockDisplayLevel() public static method

public static SetTextBlockDisplayLevel ( System.Windows.Controls.TextBlock textBlock, MessageLevelsEnum level ) : void
textBlock System.Windows.Controls.TextBlock
level MessageLevelsEnum
return void

SetVisibility() public static method

public static SetVisibility ( UIElement element, Visibility visibility ) : void
element UIElement
visibility Visibility
return void