dont close the network list. just hide it so its reusable

This commit is contained in:
Grant Limberg 2016-11-21 12:54:27 -08:00
parent a6ed711492
commit 8ebcd44405
3 changed files with 11 additions and 3 deletions

View file

@ -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);