Example #1
0
        ///<summary>
        /// Load configuration, method is unused
        ///</summary>
        public override void SyncChanges()
        {
            // sync with the new property changes here
            EnsureChildControls();
            VisualizadorDeListaAgrupada wp = (VisualizadorDeListaAgrupada)WebPartToEdit;

            if (wp != null)
            {
                this.configurationItem = wp.configurationItem;
                this.configuradorUserControl.configurationItem = this.configurationItem;
                // this.txTeste.Text = wp.configurationItem.Lista.ToString();
            }
        }
Example #2
0
        ///<summary>
        /// Saves configuration back to web part
        ///</summary>
        ///<returns>true</returns>
        public override bool ApplyChanges()
        {
            if (this.configurationItem == null)
            {
                this.configurationItem = new ConfigurationItem();
            }

            configuradorUserControl.AtualizaSelecao();

            //this.configurationItem.Lista = new Guid(txTeste.Text);
            this.configurationItem = configuradorUserControl.configurationItem;

            VisualizadorDeListaAgrupada wp = (VisualizadorDeListaAgrupada)WebPartToEdit;

            wp.configurationItem = this.configurationItem;
            wp.SaveChanges();
            return(true);
        }