diff --git a/ZitiTunneler/IdentityDetails.xaml.cs b/ZitiTunneler/IdentityDetails.xaml.cs index 3bd1a12a..3b4bf73b 100644 --- a/ZitiTunneler/IdentityDetails.xaml.cs +++ b/ZitiTunneler/IdentityDetails.xaml.cs @@ -17,12 +17,14 @@ using ZitiTunneler.Models; namespace ZitiTunneler { /// /// Interaction logic for IdentityDetails.xaml - /// + /// public partial class IdentityDetails:UserControl { private bool _isAttached = true; public delegate void Forgot(ZitiIdentity forgotten); public event Forgot OnForgot; + public delegate void ErrorOccurred(string message); + public event ErrorOccurred OnError; private List identities { get { @@ -112,9 +114,9 @@ namespace ZitiTunneler { OnForgot(forgotten); } } catch (ServiceClient.ServiceException se) { - MessageBox.Show(se.AdditionalInfo, se.Message); + OnError(se.Message); } catch (Exception ex) { - MessageBox.Show("Unexpected error 1", ex.Message); + OnError(ex.Message); } } } diff --git a/ZitiTunneler/IdentityItem.xaml b/ZitiTunneler/IdentityItem.xaml index 2ac768eb..54f94520 100644 --- a/ZitiTunneler/IdentityItem.xaml +++ b/ZitiTunneler/IdentityItem.xaml @@ -29,8 +29,8 @@ -