[Tween-svn] [1554] block/ unblockイベントで、block済みか判断を追加

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 6月 15日 (水) 12:35:36 JST


Revision: 1554
          http://sourceforge.jp/projects/tween/svn/view?view=rev&revision=1554
Author:   kiri_feather
Date:     2011-06-15 12:35:36 +0900 (Wed, 15 Jun 2011)

Log Message:
-----------
block/unblockイベントで、block済みか判断を追加

Modified Paths:
--------------
    trunk/Tween/Twitter.vb


-------------- next part --------------
Modified: trunk/Tween/Twitter.vb
===================================================================
--- trunk/Tween/Twitter.vb	2011-06-15 02:27:37 UTC (rev 1553)
+++ trunk/Tween/Twitter.vb	2011-06-15 03:35:36 UTC (rev 1554)
@@ -3173,9 +3173,10 @@
             Case "list_member_added", "list_member_removed", "list_updated"
                 evt.Target = eventData.TargetObject.FullName
             Case "block"
-                TabInformations.GetInstance.BlockIds.Add(eventData.Target.Id)
+                If Not TabInformations.GetInstance.BlockIds.Contains(eventData.Target.Id) Then TabInformations.GetInstance.BlockIds.Add(eventData.Target.Id)
                 evt.Target = ""
             Case "unblock"
+                If TabInformations.GetInstance.BlockIds.Contains(eventData.Target.Id) Then TabInformations.GetInstance.BlockIds.Remove(eventData.Target.Id)
                 evt.Target = ""
             Case "user_update"
                 evt.Target = ""



Tween-svn メーリングリストの案内
Back to archive index