Exemple #1
0
        private void WebServiceModifyButton_Click_1(object sender, EventArgs e)
        {
            MainApplicationSettings.WebServiceInfo tmp = (MainApplicationSettings.WebServiceInfo)WebServiceNameComboBox.SelectedItem;
            if (tmp != null)
            {
                frmAddWebService frmMod = new frmAddWebService();
                frmMod.DetailImplementationVisible = true;
                frmMod.Modify = true;
                frmMod.WSInfo = tmp;

                if (frmMod.ShowDialog() == DialogResult.OK)
                {
                    _tmp_settings.WebServices.Remove(tmp);
                    _tmp_settings.WebServices.Add(frmMod.WSInfo);
                    WebServiceDescriptionLabel.Text = frmMod.WSInfo.WebService_Description;
                    WebServiceURLLabel.Text         = frmMod.WSInfo.WebService_public_URL;
                    WebServiceUserNameLabel.Text    = frmMod.WSInfo.WebService_UserName;
                    WebServicePasswordLabel.Text    = frmMod.WSInfo.WebService_Password;
                    WebServiceReturnDetailImplementationLabel.Text = frmMod.WSInfo.WebService_ReturnDetail.ToString();
                }
            }
            else
            {
                MessageBox.Show("Please select a webservice.", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Exemple #2
0
        private void ValWSbuttonModify_Click(object sender, EventArgs e)
        {
            try
            {
                MainApplicationSettings.WebServiceInfo tmp = new ApplicationSettings.classes.services.ApplicationSettings.WebServiceInfo();
                tmp = _tmp_settings.ValidationWebService;

                if (tmp != null)
                {
                    frmAddWebService frmMod = new frmAddWebService();
                    frmMod.DetailImplementationVisible = false;
                    frmMod.Modify = true;
                    frmMod.WSInfo = tmp;

                    if (frmMod.ShowDialog() == DialogResult.OK)
                    {
                        _tmp_settings.ValidationWebService = frmMod.WSInfo;
                        ValWSlabelName.Text        = _tmp_settings.ValidationWebService.WebService_Name;
                        ValWSlabelDescription.Text = _tmp_settings.ValidationWebService.WebService_Description;
                        ValWSlabelWSUrl.Text       = _tmp_settings.ValidationWebService.WebService_public_URL;
                        ValWSlabelUser.Text        = _tmp_settings.ValidationWebService.WebService_UserName;
                        ValWSlabelPwd.Text         = _tmp_settings.ValidationWebService.WebService_Password;
                    }
                }
            }
            catch (Exception ex)
            {
                CommonItem.ErrManger.ErrorManagement(ex, false, this);
            }
        }
Exemple #3
0
        private void WebServiceAddButton_Click(object sender, EventArgs e)
        {
            try
            {
                frmAddWebService frmAdd = new frmAddWebService();
                frmAdd.DetailImplementationVisible = true;
                frmAdd.TestConnectionVisible       = true;

                if (frmAdd.ShowDialog() == DialogResult.OK)
                {
                    _tmp_settings.WebServices.Add(frmAdd.WSInfo);

                    WebServiceNameComboBox.Items.Add(frmAdd.WSInfo);


                    if (_tmp_settings.WebServices.Count == 1)
                    {
                        WebServiceNameComboBox.SelectedIndex = 0;
                    }
                }
            }
            catch (Exception ex)
            {
                CommonItem.ErrManger.ErrorManagement(ex, false, this);
            }
        }
Exemple #4
0
        private void ValWSbuttonAdd_Click(object sender, EventArgs e)
        {
            try
            {
                frmAddWebService frmMod = new frmAddWebService();
                frmMod.DetailImplementationVisible = false;
                frmMod.TestConnectionVisible       = false;

                if (frmMod.ShowDialog() == DialogResult.OK)
                {
                    _tmp_settings.ValidationWebService = frmMod.WSInfo;
                    ValWSlabelName.Text        = _tmp_settings.ValidationWebService.WebService_Name;
                    ValWSlabelDescription.Text = _tmp_settings.ValidationWebService.WebService_Description;
                    ValWSlabelWSUrl.Text       = _tmp_settings.ValidationWebService.WebService_public_URL;
                    ValWSlabelUser.Text        = _tmp_settings.ValidationWebService.WebService_UserName;
                    ValWSlabelPwd.Text         = _tmp_settings.ValidationWebService.WebService_Password;
                }
            }
            catch (Exception ex)
            {
                CommonItem.ErrManger.ErrorManagement(ex, false, this);
            }
        }