private void LoadMsg() { _messages.Clear(); Task.Run(() => { var t = Connection.QueryMsg(1, true); t.Reverse(); foreach (var i in t) { Dispatcher.Invoke(() => _messages.Add(i)); } }); }