Ejemplo n.º 1
0
        public void DrawTreeView(USDConfigurationData usdConfigData)
        {
            this.usdConfigData = usdConfigData;
            var usdTree = USDTree.GenerateUSDTree(usdConfigData);

            TreeViewGenerator.GenerateTreeViewFromHostedControls(treeView1, usdTree, checkBox1.Checked);
        }
Ejemplo n.º 2
0
        public static void Main(string[] args)
        {
            try
            {
                IOrganizationService Service = CreateIOrganizationService(@"*****@*****.**", @"-HXIAA#S0a#k!m\P", @"https://bdlabx-lmes-25-dev.api.crm4.dynamics.com/XRMServices/2011/Organization.svc");

                var usdConfigData = new USDConfigurationData();

                usdConfigData.HostedControls             = HostedControlRepository.GetHostedControls(Service);
                usdConfigData.Events                     = EventRepository.GetEvents(Service);
                usdConfigData.Actions                    = ActionRepository.GetActions(Service);
                usdConfigData.EventActionConnections     = EventActionConnectionRepository.GetEventActionConnections(Service);
                usdConfigData.ActionSubActionConnections = ActionSubActionRepository.GetActionSubActionConnections(Service);

                var usdTree = USDTree.GenerateUSDTree(usdConfigData);
                PrintUSDTree(usdTree);
                Console.ReadKey();
            }
            catch (Exception ex)
            {
                string message = ex.Message;
                throw;
            }
        }