Ejemplo n.º 1
0
        /// <summary>
        /// Set defaults as defined by a UrlPickerSettings
        /// </summary>
        /// <param name="settings"></param>
        public UrlPickerState(UrlPickerSettings settings)
            : base()
        {
            Mode = settings.DefaultMode;

            if (!settings.AllowedModes.Contains(Mode))
            {
                Mode = settings.AllowedModes.First();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Set defaults as defined by a UrlPickerSettings
        /// </summary>
        /// <param name="settings"></param>
        public UrlPickerState(UrlPickerSettings settings)
            : base()
        {
            Mode = settings.DefaultMode;

            if (!settings.AllowedModes.Contains(Mode))
            {
                Mode = settings.AllowedModes.First();
            }
        }
 /// <summary>
 /// Sets defaults
 /// </summary>
 public MultiUrlPickerSettings()
 {
     UrlPickerSettings = new UrlPickerSettings();
     UrlPickerDefaultState = new UrlPickerState(UrlPickerSettings);
     Standalone = true;
 }
Ejemplo n.º 4
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;
 }