public void RemoveSellerMenuItem(HashSet <string> removeNicks) { if (!removeNicks.xIsNullOrEmpty <string>()) { foreach (var nick in removeNicks) { SellerMenuCreator.RemoveMenuItem(this.notifyIcon, nick); } } }
public void AddSellerMenuItem(List <string> nickDatas) { DispatcherEx.xInvoke(() => { if (nickDatas != null && nickDatas.Count > 0) { for (int i = 0; i < nickDatas.Count; i++) { var nick = nickDatas[i]; try { SellerMenuCreator.Create(notifyIcon, nick); } catch (Exception e) { Log.Exception(e); } } } }); }