Example #1
0
 private void RemoveTabbedWebServiceForm(WebServiceClientForm form)
 {
     form.FormClosed -= WebForm_FormClosed;
     WebServiceClientControlCollection.Remove(form.WebServiceClientControl.QSetWebServiceItem.ID.ToString());
     if (_wiredownActionForTabbedDocuments != null)
     {
         _wiredownActionForTabbedDocuments(form);
     }
 }
Example #2
0
        public void AddTabbedDocumentWebService(QSetWebServiceItem webServiceItem)
        {
            var webForm = new WebServiceClientForm();

            WebServiceClientControlCollection.Add(webServiceItem.ID.ToString(), webForm.WebServiceClientControl);

            webForm.Show(_dockPanel, DockState.Document);
            webForm.WebServiceClientControl.QSetWebServiceItem = webServiceItem;

            webForm.FormClosed += WebForm_FormClosed;

            if (_wireupActionForTabbedDocuments != null)
            {
                _wireupActionForTabbedDocuments(webForm);
            }
        }