コード例 #1
0
 public bool GetShowGroupWith(string forAddress)
 {
     if (string.IsNullOrWhiteSpace(forAddress) || !ShowGroupWithDict.ContainsKey(forAddress))
     {
         return(false);
     }
     else
     {
         return(ShowGroupWithDict[forAddress]);
     }
 }
コード例 #2
0
 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();
 }