public SongSettingsWindow(SongFormatting formatting)
 {
     InitializeComponent();
     this.formatting = formatting;
     this.DataContext = this;
 }
 public void UpdateFormatting(SongFormatting formatting, bool hasTranslation, bool hasChords)
 {
     this.control.ExecuteJavascript("presentation.updateFormatting(" + JsonConvert.SerializeObject(formatting) + ", " + JsonConvert.SerializeObject(hasTranslation) + ", " + JsonConvert.SerializeObject(hasChords) + ")");
 }