@@ -60,7 +60,6 @@ private async void Button_enhance_Click(object sender, RoutedEventArgs e)
60
60
string application_path = Path . GetDirectoryName ( System . Reflection . Assembly . GetExecutingAssembly ( ) . Location ) ;
61
61
string temp_dir_path = Path . Combine ( Path . GetTempPath ( ) , "videoframes" ) ;
62
62
63
-
64
63
//exceptions checking
65
64
66
65
if ( textbox_save . Text == "" )
@@ -143,7 +142,7 @@ private async void Button_enhance_Click(object sender, RoutedEventArgs e)
143
142
frames_count ++ ; //conta i frame totali
144
143
}
145
144
146
- progress_bar . Maximum = frames_count + 2 ;
145
+ progress_bar . Maximum = frames_count + 1 ;
147
146
148
147
string result_file = textbox_save . Text ;
149
148
@@ -169,9 +168,10 @@ private async void Button_enhance_Click(object sender, RoutedEventArgs e)
169
168
foreach ( FileInfo frame in lista_files_temp_dir )
170
169
{
171
170
await Task . Run ( ( ) => Esegui_console ( temp_dir_path , ".'" + Path . Combine ( waifu_2x_folder_temp , @".\waifu2x-converter-cpp.exe" ) + "' -i " + frame . Name + " -o " + frame . Name , debug ) ) ;
171
+ progress_bar . Value ++ ;
172
172
}
173
173
174
- progress_bar . Value ++ ;
174
+
175
175
176
176
177
177
@@ -277,7 +277,7 @@ public static void DirectoryCopy(string sourceDirName, string destDirName, bool
277
277
FileInfo [ ] files = dir . GetFiles ( ) ;
278
278
foreach ( FileInfo file in files )
279
279
{
280
- string temppath = System . IO . Path . Combine ( destDirName , file . Name ) ;
280
+ string temppath = Path . Combine ( destDirName , file . Name ) ;
281
281
file . CopyTo ( temppath , false ) ;
282
282
}
283
283
@@ -286,7 +286,7 @@ public static void DirectoryCopy(string sourceDirName, string destDirName, bool
286
286
{
287
287
foreach ( DirectoryInfo subdir in dirs )
288
288
{
289
- string temppath = System . IO . Path . Combine ( destDirName , subdir . Name ) ;
289
+ string temppath = Path . Combine ( destDirName , subdir . Name ) ;
290
290
DirectoryCopy ( subdir . FullName , temppath , copySubDirs ) ;
291
291
}
292
292
}
0 commit comments