private async void OnInterpretersChanged(object sender, EventArgs e) { await Dispatcher.InvokeAsync(() => { Interpreters.Merge( InterpreterView.GetInterpreters(_project.Site, _project), InterpreterView.EqualityComparer, InterpreterView.Comparer ); }); }
private void OnInterpretersChanged(object sender, EventArgs e) { if (!Dispatcher.CheckAccess()) { Dispatcher.BeginInvoke((Action)(() => OnInterpretersChanged(sender, e))); return; } var def = _interpreterService.DefaultInterpreter; Interpreters.Merge( _interpreterService.Interpreters.Select(i => new InterpreterView(i, i.Description, i == def)), InterpreterView.EqualityComparer, InterpreterView.Comparer ); }
private void OnInterpretersChanged(object sender, EventArgs e) { if (!Dispatcher.CheckAccess()) { Dispatcher.BeginInvoke((Action)(() => OnInterpretersChanged(sender, e))); return; } var def = _project.ActiveInterpreter; Interpreters.Merge( InterpreterView.GetInterpreters(_project.Site, _project), InterpreterView.EqualityComparer, InterpreterView.Comparer ); }
private void OnInterpretersChanged(object sender, EventArgs e) { if (!Dispatcher.CheckAccess()) { Dispatcher.BeginInvoke((Action)(() => OnInterpretersChanged(sender, e))); return; } var def = _project.ActiveInterpreter; Interpreters.Merge( _project.InterpreterFactories.Select(i => new InterpreterView(i, i.Configuration.Description, i == def)), InterpreterView.EqualityComparer, InterpreterView.Comparer ); }