@@ -1045,6 +1045,7 @@ private void EntriesDownloadCompleted(Object sender, AsyncCompletedEventArgs e)
1045
1045
this . PopulateListView ( ) ;
1046
1046
}
1047
1047
else this . statusLabel . Text = this . localeData . ItemListDownloadFailed ;
1048
+ TaskbarProgress . SetState ( this . Handle , TaskbarProgress . TaskbarStates . NoProgress ) ;
1048
1049
this . progressBar . Value = 0 ;
1049
1050
}
1050
1051
catch ( Exception ex )
@@ -1105,6 +1106,7 @@ private void DownloadNextFromQueue()
1105
1106
this . isLoading = false ;
1106
1107
this . progressBar . Value = 0 ;
1107
1108
this . cancelButton . Enabled = false ;
1109
+ TaskbarProgress . SetState ( this . Handle , TaskbarProgress . TaskbarStates . NoProgress ) ;
1108
1110
this . statusLabel . Text = this . localeData . AllItemsCompleted ;
1109
1111
this . NoneLinkLabelLinkClicked ( null , null ) ;
1110
1112
this . UpdateButtonLabels ( ) ;
@@ -1138,6 +1140,7 @@ private void DownloadNextFromQueue()
1138
1140
private void DownloadProgressChanged ( Object sender , DownloadProgressChangedEventArgs e )
1139
1141
{
1140
1142
this . progressBar . Value = e . ProgressPercentage ;
1143
+ TaskbarProgress . SetValue ( this . Handle , e . ProgressPercentage , 100 ) ;
1141
1144
}
1142
1145
1143
1146
/// <summary>
@@ -1152,6 +1155,7 @@ private void DownloadFileCompleted(Object sender, AsyncCompletedEventArgs e)
1152
1155
this . isLoading = false ;
1153
1156
this . cancelButton . Enabled = false ;
1154
1157
this . statusLabel . Text = this . localeData . ItemListDownloadCancelled ;
1158
+ TaskbarProgress . SetState ( this . Handle , TaskbarProgress . TaskbarStates . NoProgress ) ;
1155
1159
this . TryDeleteOldTempFiles ( ) ;
1156
1160
this . progressBar . Value = 0 ;
1157
1161
this . UpdateButtonLabels ( ) ;
@@ -1170,6 +1174,7 @@ private void DownloadFileCompleted(Object sender, AsyncCompletedEventArgs e)
1170
1174
this . isLoading = false ;
1171
1175
this . progressBar . Value = 0 ;
1172
1176
this . cancelButton . Enabled = false ;
1177
+ TaskbarProgress . SetState ( this . Handle , TaskbarProgress . TaskbarStates . NoProgress ) ;
1173
1178
this . statusLabel . Text = this . localeData . AllItemsCompleted ;
1174
1179
this . NoneLinkLabelLinkClicked ( null , null ) ;
1175
1180
this . TryDeleteEntryDir ( this . curEntry ) ;
@@ -1195,6 +1200,7 @@ private void DownloadFileCompleted(Object sender, AsyncCompletedEventArgs e)
1195
1200
this . isLoading = false ;
1196
1201
this . progressBar . Value = 0 ;
1197
1202
this . cancelButton . Enabled = false ;
1203
+ TaskbarProgress . SetState ( this . Handle , TaskbarProgress . TaskbarStates . NoProgress ) ;
1198
1204
this . statusLabel . Text = this . localeData . AllItemsCompleted ;
1199
1205
this . NoneLinkLabelLinkClicked ( null , null ) ;
1200
1206
this . TryDeleteEntryDir ( this . curEntry ) ;
@@ -1221,6 +1227,7 @@ private void ExtractFile(String file, String path)
1221
1227
this . bgWorker . RunWorkerCompleted += new RunWorkerCompletedEventHandler ( this . WorkerDoCompleted ) ;
1222
1228
this . bgWorker . RunWorkerAsync ( new BgArg ( file , path ) ) ;
1223
1229
this . statusLabel . Text = this . localeData . ExtractingFile + this . curFile ;
1230
+ TaskbarProgress . SetState ( this . Handle , TaskbarProgress . TaskbarStates . Indeterminate ) ;
1224
1231
this . progressBar . Style = ProgressBarStyle . Marquee ;
1225
1232
}
1226
1233
catch
@@ -1234,6 +1241,7 @@ private void ExtractFile(String file, String path)
1234
1241
this . isLoading = false ;
1235
1242
this . progressBar . Value = 0 ;
1236
1243
this . cancelButton . Enabled = false ;
1244
+ TaskbarProgress . SetState ( this . Handle , TaskbarProgress . TaskbarStates . NoProgress ) ;
1237
1245
this . statusLabel . Text = this . localeData . AllItemsCompleted ;
1238
1246
this . NoneLinkLabelLinkClicked ( null , null ) ;
1239
1247
this . TryDeleteEntryDir ( this . curEntry ) ;
@@ -1272,6 +1280,7 @@ private void WorkerDoWork(Object sender, DoWorkEventArgs e)
1272
1280
this . isLoading = false ;
1273
1281
this . progressBar . Value = 0 ;
1274
1282
this . cancelButton . Enabled = false ;
1283
+ TaskbarProgress . SetState ( this . Handle , TaskbarProgress . TaskbarStates . NoProgress ) ;
1275
1284
this . statusLabel . Text = this . localeData . AllItemsCompleted ;
1276
1285
this . NoneLinkLabelLinkClicked ( null , null ) ;
1277
1286
this . TryDeleteEntryDir ( this . curEntry ) ;
@@ -1288,7 +1297,9 @@ private void WorkerDoCompleted(Object sender, RunWorkerCompletedEventArgs e)
1288
1297
{
1289
1298
try
1290
1299
{
1300
+
1291
1301
this . progressBar . Style = ProgressBarStyle . Continuous ;
1302
+ TaskbarProgress . SetState ( this . Handle , TaskbarProgress . TaskbarStates . Normal ) ;
1292
1303
if ( this . fileQueue . Count > 0 )
1293
1304
{
1294
1305
this . curFile = this . fileQueue . Dequeue ( ) ;
@@ -1335,6 +1346,7 @@ private void WorkerDoCompleted(Object sender, RunWorkerCompletedEventArgs e)
1335
1346
this . isLoading = false ;
1336
1347
this . progressBar . Value = 0 ;
1337
1348
this . cancelButton . Enabled = false ;
1349
+ TaskbarProgress . SetState ( this . Handle , TaskbarProgress . TaskbarStates . NoProgress ) ;
1338
1350
this . statusLabel . Text = this . localeData . AllItemsCompleted ;
1339
1351
this . NoneLinkLabelLinkClicked ( null , null ) ;
1340
1352
this . UpdateButtonLabels ( ) ;
0 commit comments