public bool GetShowGroupWith(string forAddress) { if (string.IsNullOrWhiteSpace(forAddress) || !ShowGroupWithDict.ContainsKey(forAddress)) { return(false); } else { return(ShowGroupWithDict[forAddress]); } }
public async Task SetShowGroupWith(string targetAddress, bool value, bool clearDictFirst = false) { if (clearDictFirst) { ShowGroupWithDict.Clear(); } if (string.IsNullOrWhiteSpace(targetAddress)) { return; } if (!ShowGroupWithDict.ContainsKey(targetAddress)) { ShowGroupWithDict.Add(targetAddress, value); } else { ShowGroupWithDict[targetAddress] = value; } await BaseContainer.NotifyStateChanged(); }