public void ChangeLinkState(UserLinkData linkdata, bool check) { if (check) { this.LinkElements = this.LinkElements.Concat(new[] { linkdata.AccountInfo }).Distinct().ToArray(); } else { this.LinkElements = this.LinkElements.Except(new[] { linkdata.AccountInfo }).ToArray(); } this.OnLinkChanged(); }
public void SelectThis(UserLinkData ld) { LinkElements = new[] { ld.AccountInfo }; MakeTargets(); this.OnLinkChanged(); }