private void ButtonDelete_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListViewWebServiceAccounts.SelectedItem != null)
     {
         YellowstonePathology.Business.WebService.WebServiceAccountView webServiceAccountView = (YellowstonePathology.Business.WebService.WebServiceAccountView) this.ListViewWebServiceAccounts.SelectedItem;
         YellowstonePathology.Business.WebService.WebServiceAccount     webServiceAccount     = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullWebServiceAccount(webServiceAccountView.WebServiceAccountId, this);
         YellowstonePathology.Business.Persistence.DocumentGateway.Instance.DeleteDocument(webServiceAccount, this);
         this.m_WebServiceAccountViewList = YellowstonePathology.Business.Gateway.WebServiceGateway.GetWebServiceAccountViewList();
         this.RefreshLimitedWebServiceAccountViewList();
     }
 }
 private void ListViewWebServiceAccounts_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (this.ListViewWebServiceAccounts.SelectedItem != null)
     {
         YellowstonePathology.Business.WebService.WebServiceAccountView webServiceAccountView = (YellowstonePathology.Business.WebService.WebServiceAccountView) this.ListViewWebServiceAccounts.SelectedItem;
         WebServiceAccountEditDialog dlg = new WebService.WebServiceAccountEditDialog(webServiceAccountView.WebServiceAccountId);
         dlg.ShowDialog();
         this.m_WebServiceAccountViewList = YellowstonePathology.Business.Gateway.WebServiceGateway.GetWebServiceAccountViewList();
         this.RefreshLimitedWebServiceAccountViewList();
     }
 }