Esempio n. 1
0
        //The async add call can not be cancelled
        void uc_treeView1_AddClicked()
        {
            Dialogs.dg_AddWS _dialog = new Dialogs.dg_AddWS();
            _dialog.PopulateForm();
            DialogResult result = _dialog.ShowDialog();

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                if (_dialog.ErrorMessage != null)
                {
                    uc_log1.LogErrorMessage(_dialog.ErrorMessage);
                    return;
                }

                if (State.Instance.ContainerWebSvc.ContainsWebService(_dialog.SelectedWSDL))
                {
                    uc_log1.LogErrorMessage("the project already contains the selected wsdl, to refresh remove the node and add it again");
                    return;
                }

                CallWebSvcRetrieveAsyc(_dialog.SelectedWSDL, false);
            }
        }
Esempio n. 2
0
        //The async add call can not be cancelled
        void uc_treeView1_AddClicked()
        {
            Dialogs.dg_AddWS _dialog = new Dialogs.dg_AddWS();
            _dialog.PopulateForm();
            DialogResult result = _dialog.ShowDialog();

            if (result == System.Windows.Forms.DialogResult.OK) {
                if (_dialog.ErrorMessage != null) {
                    uc_log1.LogErrorMessage(_dialog.ErrorMessage);
                    return;
                }

                if (State.Instance.ContainerWebSvc.ContainsWebService(_dialog.SelectedWSDL)) {
                    uc_log1.LogErrorMessage("the project already contains the selected wsdl, to refresh remove the node and add it again");
                    return;
                }

                CallWebSvcRetrieveAsyc(_dialog.SelectedWSDL, false);
            }
        }