Changeset 35176

Show
Ignore:
Timestamp:
09/02/09 23:14:50 (4 years ago)
Author:
kiri_feather
Message:

終了時にnotifyiconを操作しないように

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/vb2005/Tween/trunk/Tween/Tween.vb

    r35168 r35176  
    14971497            Me.Visible = False 
    14981498        Else 
    1499             Try 
    1500                 SaveConfigsAll() 
    1501                 _ignoreConfigSave = True 
    1502                 My.Application.DoEvents() 
    1503                 Me.Cursor = Cursors.WaitCursor 
    1504                 TimerTimeline.Enabled = False 
    1505                 TimerReply.Enabled = False 
    1506                 TimerDM.Enabled = False 
    1507                 TimerColorize.Enabled = False 
    1508                 TimerRefreshIcon.Enabled = False 
    1509  
    1510                 _endingFlag = True 
    1511  
    1512                 ''sgenのdllがあれば不要か? 
    1513                 'If e.CloseReason <> CloseReason.WindowsShutDown AndAlso e.CloseReason <> CloseReason.TaskManagerClosing Then 
    1514                 '    SaveConfigsLocal() 
    1515                 'End If 
    1516  
     1499            SaveConfigsAll() 
     1500            _ignoreConfigSave = True 
     1501            _endingFlag = True 
     1502            'My.Application.DoEvents() 
     1503            'Me.Cursor = Cursors.WaitCursor 
     1504            TimerTimeline.Enabled = False 
     1505            TimerReply.Enabled = False 
     1506            TimerDM.Enabled = False 
     1507            TimerColorize.Enabled = False 
     1508            TimerRefreshIcon.Enabled = False 
     1509 
     1510 
     1511            ''sgenのdllがあれば不要か? 
     1512            'If e.CloseReason <> CloseReason.WindowsShutDown AndAlso e.CloseReason <> CloseReason.TaskManagerClosing Then 
     1513            '    SaveConfigsLocal() 
     1514            'End If 
     1515 
     1516            For i As Integer = 0 To _bw.Length - 1 
     1517                If _bw(i) IsNot Nothing AndAlso _bw(i).IsBusy Then _bw(i).CancelAsync() 
     1518            Next 
     1519            If _bwFollower IsNot Nothing AndAlso _bwFollower.IsBusy Then _bwFollower.CancelAsync() 
     1520 
     1521            Dim flg As Boolean = False 
     1522            Do 
     1523                flg = True 
    15171524                For i As Integer = 0 To _bw.Length - 1 
    1518                     If _bw(i) IsNot Nothing AndAlso _bw(i).IsBusy Then _bw(i).CancelAsync() 
     1525                    If _bw(i) IsNot Nothing AndAlso _bw(i).IsBusy Then 
     1526                        flg = False 
     1527                        Exit For 
     1528                    End If 
    15191529                Next 
    1520                 If _bwFollower IsNot Nothing AndAlso _bwFollower.IsBusy Then _bwFollower.CancelAsync() 
    1521  
    1522                 Dim flg As Boolean = False 
    1523                 Do 
    1524                     flg = True 
    1525                     For i As Integer = 0 To _bw.Length - 1 
    1526                         If _bw(i) IsNot Nothing AndAlso _bw(i).IsBusy Then 
    1527                             flg = False 
    1528                             Exit For 
    1529                         End If 
    1530                     Next 
    1531                     If _bwFollower IsNot Nothing AndAlso _bwFollower.IsBusy Then 
    1532                         flg = False 
    1533                     End If 
    1534                     Threading.Thread.Sleep(500) 
    1535                     Application.DoEvents() 
    1536                 Loop Until flg = True 
    1537  
    1538                 Me.Visible = False 
    1539                 NotifyIcon1.Visible = False 
    1540             Finally 
    1541                 Me.Cursor = Cursors.Default 
    1542             End Try 
     1530                If _bwFollower IsNot Nothing AndAlso _bwFollower.IsBusy Then 
     1531                    flg = False 
     1532                End If 
     1533                Threading.Thread.Sleep(500) 
     1534                Application.DoEvents() 
     1535            Loop Until flg = True 
     1536 
     1537            'Me.Visible = False 
     1538            'NotifyIcon1.Visible = False 
    15431539        End If 
    15441540    End Sub