public void refreshDisplayedDMLCode() { GenerateDMLCode genDC; Dispatcher.BeginInvoke(new Action(delegate { codeArea.Text = ""; foreach (var ob in ui.UIL) { genDC = new GenerateDMLCode(ob); codeArea.Text += genDC.serializeDML(); } })); }
async public void refreshDisplayedDMLCode() { GenerateDMLCode genDC; await Application.Current.Dispatcher.BeginInvoke(new Action(delegate { CodeArea = ""; foreach (var ob in ui.UIL) { genDC = new GenerateDMLCode(ob); CodeArea += genDC.serializeDML(); } })); }