/// <summary> /// Saves the data-type PreValue options. /// </summary> public override void Save() { // get the macro tag value var macroTag = this.MacroEditor.MacroTag; if (string.IsNullOrEmpty(macroTag)) { macroTag = RenderMacroOptions.DEFAULT_MACRO_TAG; } // set the options var options = new RenderMacroOptions() { MacroTag = macroTag, ShowLabel = this.ShowLabel.Checked }; // save the options as JSON this.SaveAsJson(options); }
/// <summary> /// Initializes a new instance of the <see cref="RenderMacroDataEditor"/> class. /// </summary> /// <param name="data">The data.</param> /// <param name="options">The options.</param> public RenderMacroDataEditor(IData data, RenderMacroOptions options) { this.Data = data; this.Options = options; }