/// <summary> /// Initialization called only once by the exposedTagsConfigurationInstance /// </summary> private ExposedTagsConfiguration( ) : base("ExposedTagsFilePath", "ExposedTagsFileName", "ExposedTags.xml", out Program.obj, typeof(ExposedTags)) { exposedTags = Program.obj as ExposedTags; if (exposedTags == null) { exposedTags = new ExposedTags(); exposedTags.CreateDefault(); } }
/// <summary> /// Expose only the default read writeable tags /// </summary> private void ResetToDefaultTagsButton_Click(object sender, EventArgs e) { exposedTags.CreateDefault(); mp3File.InitializeDirtyTags(); tags.ResetBindings(); }