Пример #1
0
        void _dialog_OnTestConnection(object sender, EventArgs e)
        {            
            Services.ServiceBase test = new Services.VoxVoteService();
            var response = test.GetProjects(_dialog.txtService.Text);
            

            if (string.IsNullOrWhiteSpace(response))
            {
                MessageBox.Show(string.Format("Could not connect to given url - {0}", _dialog.txtService.Text));
            }
            else
            {
                MessageBox.Show("Successfully connected");
            }
        }
Пример #2
0
        void _dialog_OnTestConnection(object sender, EventArgs e)
        {
            Services.ServiceBase test = new Services.VoxVoteService();
            var response = test.GetProjects(_dialog.txtService.Text);


            if (string.IsNullOrWhiteSpace(response))
            {
                MessageBox.Show(string.Format("Could not connect to given url - {0}", _dialog.txtService.Text));
            }
            else
            {
                MessageBox.Show("Successfully connected");
            }
        }