Пример #1
0
        private void UpdateAllServices(IOrganizationService newService)
        {
            // ENTITIES LIST - update the connection
            EntityListControl.UpdateConnection(newService);
            EntityDropdown.UpdateConnection(newService);
            AttributeDropdownBase.UpdateConnection(newService);
            EntityDropdownAttribs.UpdateConnection(newService);
            SolutionDropdown.UpdateConnection(newService);

            AttribListControl.UpdateConnection(newService);
            EntityDropdownAttribList.UpdateConnection(newService);

            ViewDropdown.UpdateConnection(newService);
            EntityDropdownViews.UpdateConnection(newService);

            GlobalOptionSetList.UpdateConnection(newService);

            // SolutionDropdownGridView.UpdateConnection(newService);
            CrmGridView.OrganizationService             = newService;
            CrmGridViewDesignedCols.OrganizationService = newService;
            cdsDataComboBox.OrganizationService         = newService;
            cdsDataTextBox.OrganizationService          = newService;
            cdsLookupDialog1.Service = newService;

            EntityListViewBase.UpdateConnection(newService);
            listViewEntCollection.UpdateConnection(newService);

            cdsDataComboRetrieve.OrganizationService = newService;
        }
Пример #2
0
        private void UpdateAllServices(IOrganizationService newService)
        {
            // ENTITIES LIST - update the connection
            EntityListControl.UpdateConnection(newService);
            EntityDropdown.UpdateConnection(newService);
            AttributeDropdownBase.UpdateConnection(newService);
            EntityDropdownAttribs.UpdateConnection(newService);
            SolutionDropdown.UpdateConnection(newService);

            AttribListControl.UpdateConnection(newService);
            EntityDropdownAttribList.UpdateConnection(newService);

            ViewDropdown.UpdateConnection(newService);
            EntityDropdownViews.UpdateConnection(newService);

            GlobalOptionSetList.UpdateConnection(newService);

            // SolutionDropdownGridView.UpdateConnection(newService);
            CrmGridView.OrganizationService     = newService;
            cdsDataComboBox.OrganizationService = newService;

            EntityListViewBase.UpdateConnection(newService);

            listViewEntCollection.UpdateConnection(newService);

            // solutionsDropdownControl1.UpdateConnection(newService);
        }
Пример #3
0
        private void ToolButtonUpdateConnection_Click(object sender, EventArgs e)
        {
            // do stuff based on active tab
            switch (tabControlMain.SelectedTab.Name)
            {
            case "tabPageEntList":
                EntityListControl.UpdateConnection(Service);
                break;

            case "tabPageEntDropdown":
                EntityDropdown.UpdateConnection(Service);
                break;

            case "tabPageAttrList":
                AttribListControl.UpdateConnection(Service);
                EntityDropdownAttribList.UpdateConnection(Service);

                break;

            case "tabPageAttrDropDown":
                AttributeDropdownBase.UpdateConnection(Service);
                EntityDropdownAttribs.UpdateConnection(Service);
                break;

            case "tabPageSolution":
                SolutionDropdown.UpdateConnection(Service);
                break;

            case "tabPageViewsDropdown":
                ViewDropdown.UpdateConnection(Service);
                EntityDropdownViews.UpdateConnection(Service);
                break;

            case "tabPageGlobalOptSets":
                GlobalOptionSetList.UpdateConnection(Service);
                break;
            }
        }