Abit nicer code nothing special
This commit is contained in:
Родитель
d473ad0582
Коммит
2ef5f4f5f3
|
@ -44,11 +44,9 @@ namespace Xwt.WPFBackend
|
|||
public void SetContent (IWidgetBackend widget)
|
||||
{
|
||||
if (widget == null)
|
||||
{
|
||||
CheckBox.Content = null;
|
||||
return;
|
||||
}
|
||||
CheckBox.Content = widget.NativeWidget;
|
||||
else
|
||||
CheckBox.Content = widget.NativeWidget;
|
||||
}
|
||||
|
||||
public void SetContent (string label)
|
||||
|
|
|
@ -46,11 +46,9 @@ namespace Xwt.WPFBackend
|
|||
public void SetContent(IWidgetBackend widget)
|
||||
{
|
||||
if (widget == null)
|
||||
{
|
||||
RadioButton.Content = null;
|
||||
return;
|
||||
}
|
||||
RadioButton.Content = widget.NativeWidget;
|
||||
else
|
||||
RadioButton.Content = widget.NativeWidget;
|
||||
}
|
||||
|
||||
public void SetContent(string label)
|
||||
|
|
Загрузка…
Ссылка в новой задаче