If _notifyPosts Is Nothing Then _notifyPosts = New List(Of PostClass)
Me.Distribute() 'タブに仮振分
_addCount = _addedIds.Count
+ For Each tb As TabClass In _tabs.Values
+ If tb.TabType = TabUsageType.PublicSearch Then _addCount += tb.GetTemporaryPosts.Length
+ Next
_addedIds.Clear()
_addedIds = Nothing '後始末
Return _addCount '件数
For Each tn As String In _tabs.Keys
If _tabs(tn).TabType = TabUsageType.PublicSearch Then
If _tabs(tn).GetTemporaryPosts.Length > 0 Then
- For Each post As PostClass In _tabs(tn).GetTemporaryPosts
- _notifyPosts.Add(post)
- Next
+ If _tabs(tn).Notify Then
+ For Each post As PostClass In _tabs(tn).GetTemporaryPosts
+ Dim exist As Boolean = False
+ For Each npost As PostClass In _notifyPosts
+ If npost.Id = post.Id Then
+ exist = True
+ Exit For
+ End If
+ Next
+ If Not exist Then _notifyPosts.Add(post)
+ Next
+ End If
If _soundFile = "" AndAlso _tabs(tn).SoundFile <> "" Then _soundFile = _tabs(tn).SoundFile
End If
End If
'ReadedStripMenuItem.ShortcutKeyDisplayString = "B"
'UnreadStripMenuItem.ShortcutKeyDisplayString = "Shift+B"
- AddHandler My.Computer.Network.NetworkAvailabilityChanged, AddressOf Network_NetworkAvailabilityChanged
If SettingDialog.MinimizeToTray = False OrElse Me.WindowState <> FormWindowState.Minimized Then
Me.Visible = True
End If
Private Sub NotifyNewPosts(ByVal notifyPosts() As PostClass, ByVal soundFile As String, ByVal addCount As Integer)
'新着通知
- If (NewPostPopMenuItem.Checked AndAlso _
- notifyPosts IsNot Nothing AndAlso notifyPosts.Length > 0 AndAlso _
- Not _initial AndAlso _
- ((SettingDialog.LimitBalloon AndAlso _
- (Me.WindowState = FormWindowState.Minimized OrElse Not Me.Visible OrElse Form.ActiveForm Is Nothing)) _
- OrElse Not SettingDialog.LimitBalloon)) AndAlso Not IsScreenSaverRunning() Then
+ If ( _
+ NewPostPopMenuItem.Checked AndAlso _
+ notifyPosts IsNot Nothing AndAlso _
+ notifyPosts.Length > 0 AndAlso _
+ Not _initial AndAlso _
+ ( _
+ ( _
+ SettingDialog.LimitBalloon AndAlso _
+ ( _
+ Me.WindowState = FormWindowState.Minimized OrElse _
+ Not Me.Visible OrElse _
+ Form.ActiveForm Is Nothing _
+ ) _
+ ) OrElse _
+ Not SettingDialog.LimitBalloon _
+ ) _
+ ) AndAlso _
+ Not IsScreenSaverRunning() Then
Dim sb As New StringBuilder
Dim reply As Boolean = False
Dim dm As Boolean = False
End Sub
Private Sub TweenMain_Shown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shown
+ AddHandler My.Computer.Network.NetworkAvailabilityChanged, AddressOf Network_NetworkAvailabilityChanged
Try
PostBrowser.Url = New Uri("about:blank")
PostBrowser.DocumentText = "" '発言詳細部初期化