Winify
/trunk/Winify/Form1.cs |
@@ -77,10 +77,13 @@ |
|
private void Default_PropertyChanged1(object sender, PropertyChangedEventArgs e) |
{ |
_gotifyConnection.GotifyNotification -= GotifyConnection_GotifyNotification; |
_gotifyConnection.Stop(); |
_gotifyConnection.Dispose(); |
_gotifyConnection = null; |
if (_gotifyConnection != null) |
{ |
_gotifyConnection.GotifyNotification -= GotifyConnection_GotifyNotification; |
_gotifyConnection.Stop(); |
_gotifyConnection.Dispose(); |
_gotifyConnection = null; |
} |
|
_gotifyConnection = new GotifyConnection(); |
_gotifyConnection.GotifyNotification += GotifyConnection_GotifyNotification; |