Пример #1
0
        /// <summary>
        /// CAmbia el proveedor
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void cb_SelectedValueChanged(object sender, EventArgs e)
        {
            _SelectedProvider = ServiceMetadata.ProviderSection.GetProvider(cmb2.SelectedItem.ToString());

            SetProviderDest();


            try
            {
                //cargo la grilla derecha
                ucbServiceGrid2.Services     = ServiceMetadata.GetAllServices(_SelectedProvider.Name);
                ucbServiceGrid2.Applications = ServiceMetadata.GetAllApplicationsId(_SelectedProvider.Name);



                //muestro el titulo
                this.Text = string.Concat("Export data from ", _SelectedProvider.Name, " to ", _SelectedProvider.Name);
            }
            catch (Exception ex)
            {
                base.ExceptionViewer.Show(ex);

                ucbServiceGrid1.Services = null;
            }
        }
Пример #2
0
        void LoadConfig()
        {
            SetProviderSource();
            SetProviderDest();


            //cargo la grilla izquierda
            ucbServiceGrid1.Services     = ServiceMetadata.GetAllServices(_SourceProvider.Name);
            ucbServiceGrid1.Applications = ServiceMetadata.GetAllApplicationsId(_SourceProvider.Name);

            //lleno el combo de posibles proveedores destino
            foreach (ServiceProviderElement p in ServiceMetadata.ProviderSection.Providers)
            {
                if (!_SourceProvider.Name.Equals(p.Name))
                {
                    cmb2.Items.Add(p.Name);
                }
            }


            cmb2.SelectedIndex = 0;
            _SelectedProvider  = ServiceMetadata.ProviderSection.GetProvider(cmb2.SelectedItem.ToString());

            cmb2.SelectedValueChanged += new EventHandler(cb_SelectedValueChanged);


            this.Text = string.Concat("Export data from ", _SourceProvider.Name, " to ", _SourceProvider.Name);
        }
Пример #3
0
        private void connectToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                ucbServiceGrid1.Services = ServiceMetadata.GetAllServices(frmServices.CurrentProvider.Name);

                ucbServiceGrid1.Applications = ServiceMetadata.GetAllApplicationsId(CurrentProvider.Name);
                provider1.SetConnected(true);
            }
            catch (Exception ex)
            {
                base.ExceptionViewer.Show(ex);
                provider1.SetConnected(false);
            }
        }
Пример #4
0
 /// <summary>
 /// Obtiene una lista de todas las aplicaciones configuradas en el origen de datos configurado por el
 /// proveedor
 /// </summary>
 /// <param name="providerName">Nombre del proveedor de metadata de servicios.-</param>
 /// <returns></returns>
 public static List <String> GetAllApplicationsId(string providerName)
 {
     return(ServiceMetadata.GetAllApplicationsId(providerName));
 }