コード例 #1
0
 private void RemoveByCurrentlyOffered(GuildTask entity)
 {
     if (ByCurrentlyOffered.ContainsKey(entity.ID))
     {
         ByCurrentlyOffered.Remove(entity.ID);
     }
 }
コード例 #2
0
 private void SetByCurrentlyOffered(GuildTask entity)
 {
     if (!ByCurrentlyOffered.ContainsKey(entity.ID) && entity.IsCurrentlyOffered)
     {
         ByCurrentlyOffered[entity.ID] = (GuildTask)entity.Clone();
     }
     else if (ByCurrentlyOffered.ContainsKey(entity.ID) && !entity.IsCurrentlyOffered)
     {
         ByCurrentlyOffered.Remove(entity.ID);
     }
 }