Changeset 33308
- Timestamp:
- 05/15/09 11:34:23 (4 years ago)
- Files:
-
- 1 modified
-
lang/vb2008/TweenUp/TweenUp/Form1.vb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/vb2008/TweenUp/TweenUp/Form1.vb
r31911 r33308 17 17 ' exe自身からフォームのアイコンを取得 18 18 Me.Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath) 19 19 #If 0 Then 20 20 If Environment.GetCommandLineArgs().Length <> 1 AndAlso Directory.Exists(Environment.GetCommandLineArgs()(1)) Then 21 21 TWEENEXEPATH = Environment.GetCommandLineArgs()(1) 22 22 SOURCEPATH = Path.GetTempPath 23 23 End If 24 #End If 24 25 End Sub 25 26 … … 106 107 Count += 1 107 108 108 ' だいたい 60秒ぐらい(適当)たってもだめなら例外を発生させる109 If Count >= 60 Then109 ' だいたい30秒ぐらい(適当)たってもだめなら例外を発生させる 110 If Count >= 30 Then 110 111 Throw New ApplicationException(My.Resources.TimeOutException) 111 ElseIf (Count >= 30) And (kFlag = False) Then112 ' 30秒以上たったならCloseMainWindow()をやめてKill()に切り替える (30~60秒だとここ)112 ElseIf (Count >= 15) And (kFlag = False) Then 113 ' 15秒以上たったならCloseMainWindow()をやめてKill()に切り替える (15~30秒だとここ) 113 114 kFlag = True 114 115 BackgroundWorker1.ReportProgress(0, userState:=My.Resources.ProgressProcessKill)
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)