Ejemplo n.º 1
0
        private void treeViewBizTalkApplications_BeforeExpand(object sender, TreeViewCancelEventArgs e)
        {
            try
            {
                // Expand only Applications -- Valid only for this node
                if (e.Node != null && e.Node.Parent != null && e.Node.Parent.Text == "Applications")
                {
                    ApplicationLoad appLoad = e.Node.Tag as ApplicationLoad;
                    if (appLoad != null && !appLoad.IsArtifactsLoaded)
                    {
                        LoadApplicationArtifactsProperties(appLoad.Application, e.Node);
                        appLoad.IsArtifactsLoaded = true;
                        e.Node.Tag = appLoad;
                    }
                }
                if (e.Node != null && e.Node.Parent != null && e.Node.Text == "Applications")
                {
                    if (!IsapplicationNodeExpanded)
                    {
                        LoadApplicationsOnExpand(e.Node);
                    }
                }

                if (e.Node != null && e.Node.Parent != null && e.Node.Parent.Text == "All Artifacts")
                {
                    if (e.Node.Text == "Send Ports")
                    {
                        LoadAllSendPorts(e.Node);
                    }
                    if (e.Node.Text == "Receive Locations")
                    {
                        LoadAllReceiveLocations(e.Node);
                    }
                }

                if (e.Node != null && e.Node.Parent != null && e.Node.Text == "All Artifacts")
                {
                    if (!IsartifactsNodeExpanded)
                    {
                        LoadArtifactsOnExpand(e.Node);
                    }
                }

                if (e.Node != null && e.Node.Parent != null && e.Node.Text == "IIS")
                {
                    if (!IsIISNodeExpanded)
                    {
                        LoadIISTreeViewOnExpand(e.Node);
                    }
                }
            }
            catch (Exception exe)
            {
                DisplayError(exe);
            }
        }
Ejemplo n.º 2
0
        private void refreshToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ApplicationLoad appLoad = treeViewBizTalkApplications.SelectedNode.Tag as ApplicationLoad;

            if (appLoad != null)
            {
                Microsoft.BizTalk.ExplorerOM.Application refreshedApp = explorerHelper.GetApplication(appLoad.Application.Name);
                appLoad.Application = refreshedApp;
                LoadApplicationArtifactsProperties(appLoad.Application, treeViewBizTalkApplications.SelectedNode);
            }
        }
Ejemplo n.º 3
0
        private void UserControl1_Load(object sender, EventArgs e)
        {
            ApplicationLoad appLoad = _node.Tag as ApplicationLoad;

            if (appLoad != null)
            {
                PopulatePropertyGrid(appLoad.Application);
            }
            else
            {
                PopulatePropertyGrid(_node.Tag);
            }
        }
Ejemplo n.º 4
0
 private void LoadApplicationsOnExpand(TreeNode biztalkApplicationsNode)
 {
     biztalkApplicationsNode.Nodes.Clear();
     foreach (Microsoft.BizTalk.ExplorerOM.Application application in RefreshAppCollection())
     {
         TreeNode applicationNode = biztalkApplicationsNode.Nodes.Add(application.Name);
         applicationNode.Nodes.Add("");
         ApplicationLoad appLoad = new ApplicationLoad();
         appLoad.Application              = application;
         appLoad.IsArtifactsLoaded        = false;
         applicationNode.Tag              = appLoad;
         applicationNode.ContextMenuStrip = contextMenuStripApplication;
     }
     IsapplicationNodeExpanded = true;
 }