fix: fix #53.
This commit is contained in:
@@ -12,18 +12,5 @@ public partial class IPv4BoxDemo : UserControl
|
||||
public IPv4BoxDemo()
|
||||
{
|
||||
InitializeComponent();
|
||||
DataContext = new IPv4DemoViewMode();
|
||||
}
|
||||
}
|
||||
|
||||
public partial class IPv4DemoViewMode: ObservableObject
|
||||
{
|
||||
[ObservableProperty]
|
||||
private IPAddress? _address;
|
||||
|
||||
public void ChangeAddress()
|
||||
{
|
||||
long l = Random.Shared.NextInt64(0x00000000FFFFFFFF);
|
||||
Address = new IPAddress(l);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user