Exemplo n.º 1
0
        private void PingCompleted(object sender, OpenReadCompletedEventArgs e)
        {
            try
            {
                CheckForErrors(e);

                Stream s = e.Result;

                XmlSerializer xs = new XmlSerializer(typeof(PartyService.Acknowledgement));
                PartyService.Acknowledgement ack = (PartyService.Acknowledgement)xs.Deserialize(s);

                PartySearchForm partySearch = new PartySearchForm();

                SetContent(partySearch);
            }
            catch (Exception ex)
            {
                app.ShowError(ex.Message);
            }
            finally
            {
                formBusyIndicator.IsBusy = false;
            }
        }
Exemplo n.º 2
0
        private void PingCompleted(object sender, OpenReadCompletedEventArgs e)
        {
            try
            {
                CheckForErrors(e);

                Stream s = e.Result;

                XmlSerializer xs = new XmlSerializer(typeof(PartyService.Acknowledgement));
                PartyService.Acknowledgement ack = (PartyService.Acknowledgement)xs.Deserialize(s);

                PartySearchForm partySearch = new PartySearchForm();

                SetContent(partySearch);
            }
            catch (Exception ex)
            {
                app.ShowError(ex.Message);
            }
            finally
            {
                formBusyIndicator.IsBusy = false;
            }
        }