コード例 #1
0
ファイル: FormMain.cs プロジェクト: shachaoshu/WsdlUI
        //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);
            }
        }
コード例 #2
0
ファイル: FormMain.cs プロジェクト: umabiel/WsdlUI
        //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);
            }
        }