Ejemplo n.º 1
0
        /// <summary>
        /// Froms the specified control.
        /// </summary>
        /// <param name="control">The control.</param>
        /// <returns></returns>
        public static ClientConfiguration From(SmartParts_DefaultOpportunityProduct control)
        {
            ClientConfiguration configuration = new ClientConfiguration();

            configuration.ID       = control.ID;
            configuration.ClientID = control.ClientID;
            configuration.SelectedNodesClientID = control.selectedNodes.ClientID;
            configuration.ProductTreeTitle      = control.GetLocalResourceObject("lblAvailableProducts_rsc.Text") as string;
            return(configuration);
        }
 /// <summary>
 /// Froms the specified control.
 /// </summary>
 /// <param name="control">The control.</param>
 /// <returns></returns>
 public static ClientConfiguration From(SmartParts_DefaultOpportunityProduct control)
 {
     ClientConfiguration configuration = new ClientConfiguration();
     configuration.ID = control.ID;
     configuration.ClientID = control.ClientID;
     configuration.SelectedNodesClientID = control.selectedNodes.ClientID;
     configuration.ProductTreeTitle = control.GetLocalResourceObject("lblAvailableProducts_rsc.Text") as string;
     return configuration;
 }