private void treeView1_DoubleClick(object sender, EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     try
     {
         TreeNode treeNode = treeView1.SelectedNode;
         if (treeNode != null)
         {
             string name = treeNode.Text;
             addWebService = new EIBFormDesigner.Designer.WebServiceClientExplorer.AddWebServiceClient();
             if (addWebService.resetValues(name))
             {
                 DialogResult dResult = addWebService.ShowDialog();
                 if (dResult == DialogResult.OK)
                 {
                     //Implemented inside addwebserviceclient method.
                 }
                 else
                 {
                     return;
                 }
             }
         }
     }
     catch (Exception ex)
     {
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
        private void webServiceClientToolStripMenuItem_Click(object sender, EventArgs e)
        {
            addWebService = new EIBFormDesigner.Designer.WebServiceClientExplorer.AddWebServiceClient();
            addWebService.resetValues("");
            DialogResult dResult = addWebService.ShowDialog();

            if (dResult == DialogResult.OK)
            {
                addWebService.newTreeNode.ContextMenuStrip = deleteContextMenuStrip;
                treeView1.Nodes[0].Nodes.Add(addWebService.newTreeNode);
                treeView1.ExpandAll();
                treeView1.SelectedNode = treeView1.Nodes[0];
            }
            else
            {
                return;
            }
        }
 private void webServiceClientToolStripMenuItem_Click(object sender, EventArgs e)
 {
     addWebService = new EIBFormDesigner.Designer.WebServiceClientExplorer.AddWebServiceClient();
     addWebService.resetValues("");
     DialogResult dResult = addWebService.ShowDialog();
     if (dResult == DialogResult.OK)
     {
         addWebService.newTreeNode.ContextMenuStrip = deleteContextMenuStrip;
         treeView1.Nodes[0].Nodes.Add(addWebService.newTreeNode);
         treeView1.ExpandAll();
         treeView1.SelectedNode = treeView1.Nodes[0];
     }
     else
     {
         return;
     }
 }
        private void treeView1_DoubleClick(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            try
            {
                TreeNode treeNode = treeView1.SelectedNode;
                if (treeNode != null)
                {
                    string name = treeNode.Text;
                    addWebService = new EIBFormDesigner.Designer.WebServiceClientExplorer.AddWebServiceClient();
                    if (addWebService.resetValues(name))
                    {
                        DialogResult dResult = addWebService.ShowDialog();
                        if (dResult == DialogResult.OK)
                        {
                            //Implemented inside addwebserviceclient method.
                        }
                        else
                        {
                            return;
                        }
                    }
                }
            }
            catch (Exception ex)
            {

            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }