/// <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; }
/// <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; }