void InsertSession(SessionInfo info) { Action action = () => { _pinnedSessionsCount += info.IsPinnedOnTop ? 1 : 0; _sessionListBox.Items.Insert(info.IsPinnedOnTop ? 0 : _pinnedSessionsCount, info); _sessionListBox.Invalidate(); }; _actionWrapper.InvokeAction(action); }
private void SetMultipushState(ResponseCode code, ConfigMultiportPushParam param) { _actionWrapper.InvokeAction(() => { if (code != ResponseCode.kNIMResSuccess) { MessageBox.Show("MultiportPush 操作失败:" + code.ToString()); } }); }