Esempio n. 1
0
        /// <summary>
        /// Handles the Init event of the m_DataEditor control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        void m_DataEditor_Init(object sender, EventArgs e)
        {
            // Fill DataEditor with the prevalue settings and a unique ID
            var settings = Settings;

            settings.UniquePropertyId   = ((umbraco.cms.businesslogic.datatype.DefaultData) this.Data).PropertyId;
            settings.Standalone         = false;
            this.ContentEditor.Settings = settings;
        }
Esempio n. 2
0
 /// <summary>
 /// Checks the state is completely valid
 /// </summary>
 /// <param name="state">State to validate</param>
 /// <returns>Validation success</returns>
 public bool ValidateState(MultiUrlPickerState state)
 {
     // Do any items fail validation, or miss a URL?
     return(!state.Items.Any(x => !UrlPickerSettings.ValidateState(x)));
 }
Esempio n. 3
0
 /// <summary>
 /// Sets defaults
 /// </summary>
 public MultiUrlPickerSettings()
 {
     UrlPickerSettings     = new UrlPickerSettings();
     UrlPickerDefaultState = new UrlPickerState(UrlPickerSettings);
     Standalone            = true;
 }