dont close the network list. just hide it so its reusable
This commit is contained in:
parent
a6ed711492
commit
8ebcd44405
3 changed files with 11 additions and 3 deletions
|
@ -17,6 +17,7 @@ using System.Windows.Media.Imaging;
|
|||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Threading;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace WinUI
|
||||
{
|
||||
|
@ -41,6 +42,12 @@ namespace WinUI
|
|||
{
|
||||
}
|
||||
|
||||
protected override void OnClosing(CancelEventArgs e)
|
||||
{
|
||||
e.Cancel = true;
|
||||
Hide();
|
||||
}
|
||||
|
||||
private void onClosed(object sender, System.EventArgs e)
|
||||
{
|
||||
NetworkMonitor.Instance.UnsubscribeNetworkUpdates(updateNetworks);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue