removed old .Net Framework 4.8 versoin

This commit is contained in:
Domi 2024-01-30 23:58:01 +01:00
parent 07b74ab9be
commit 4061d94bcd
3 changed files with 122 additions and 26 deletions

View File

@ -3,8 +3,6 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17 # Visual Studio Version 17
VisualStudioVersion = 17.7.34031.279 VisualStudioVersion = 17.7.34031.279
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OfficeConverter", "OfficeConverter\OfficeConverter.csproj", "{6E77662E-82C3-4913-8964-5A452B229F78}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Projektmappenelemente", "Projektmappenelemente", "{D66D2D0C-17EE-4008-BB58-DDD6EB016AAB}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Projektmappenelemente", "Projektmappenelemente", "{D66D2D0C-17EE-4008-BB58-DDD6EB016AAB}"
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OfficeConverterCore", "OfficeConverterCore\OfficeConverterCore.csproj", "{B996BAD7-81B4-47F1-84E9-73ABE48859AC}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OfficeConverterCore", "OfficeConverterCore\OfficeConverterCore.csproj", "{B996BAD7-81B4-47F1-84E9-73ABE48859AC}"
@ -19,18 +17,6 @@ Global
Test|x64 = Test|x64 Test|x64 = Test|x64
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6E77662E-82C3-4913-8964-5A452B229F78}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6E77662E-82C3-4913-8964-5A452B229F78}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6E77662E-82C3-4913-8964-5A452B229F78}.Debug|x64.ActiveCfg = Debug|x64
{6E77662E-82C3-4913-8964-5A452B229F78}.Debug|x64.Build.0 = Debug|x64
{6E77662E-82C3-4913-8964-5A452B229F78}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6E77662E-82C3-4913-8964-5A452B229F78}.Release|Any CPU.Build.0 = Release|Any CPU
{6E77662E-82C3-4913-8964-5A452B229F78}.Release|x64.ActiveCfg = Release|x64
{6E77662E-82C3-4913-8964-5A452B229F78}.Release|x64.Build.0 = Release|x64
{6E77662E-82C3-4913-8964-5A452B229F78}.Test|Any CPU.ActiveCfg = Test|Any CPU
{6E77662E-82C3-4913-8964-5A452B229F78}.Test|Any CPU.Build.0 = Test|Any CPU
{6E77662E-82C3-4913-8964-5A452B229F78}.Test|x64.ActiveCfg = Debug|x64
{6E77662E-82C3-4913-8964-5A452B229F78}.Test|x64.Build.0 = Debug|x64
{B996BAD7-81B4-47F1-84E9-73ABE48859AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {B996BAD7-81B4-47F1-84E9-73ABE48859AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B996BAD7-81B4-47F1-84E9-73ABE48859AC}.Debug|Any CPU.Build.0 = Debug|Any CPU {B996BAD7-81B4-47F1-84E9-73ABE48859AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B996BAD7-81B4-47F1-84E9-73ABE48859AC}.Debug|x64.ActiveCfg = Debug|Any CPU {B996BAD7-81B4-47F1-84E9-73ABE48859AC}.Debug|x64.ActiveCfg = Debug|Any CPU

View File

@ -63,6 +63,7 @@
</Grid> </Grid>
</GroupBox> </GroupBox>
<Button x:Name="btnExportLog" Content="btnExportLog" HorizontalAlignment="Left" Height="33" Margin="1294,555,0,0" VerticalAlignment="Top" Width="94" Click="btnExport_Click"/> <Button x:Name="btnExportLog" Content="btnExportLog" HorizontalAlignment="Left" Height="33" Margin="1294,555,0,0" VerticalAlignment="Top" Width="94" Click="btnExport_Click"/>
<Label x:Name="lblState" Content="Label" HorizontalAlignment="Left" Margin="189,569,0,0" VerticalAlignment="Top" Width="519"/>
</Grid> </Grid>
<Label Content="Office Document Converter" HorizontalAlignment="Left" Margin="10,16,0,0" VerticalAlignment="Top" Width="277" FontSize="20"/> <Label Content="Office Document Converter" HorizontalAlignment="Left" Margin="10,16,0,0" VerticalAlignment="Top" Width="277" FontSize="20"/>

View File

@ -31,6 +31,8 @@ namespace OfficeConverter
List<string> convertedFiles = new List<string>(); List<string> convertedFiles = new List<string>();
private List<string> logEntries = new List<string>(); private List<string> logEntries = new List<string>();
string msgConversionInProgress = "Conversion in progress";
string msgConversionComplete = "Conversion complete";
//Globalvariables //Globalvariables
bool doSubfolders = false; bool doSubfolders = false;
@ -54,6 +56,9 @@ namespace OfficeConverter
chkPowerpoint.IsChecked = true; chkPowerpoint.IsChecked = true;
cmbLang.Items.Add("EN"); cmbLang.Items.Add("EN");
cmbLang.Items.Add("DE"); cmbLang.Items.Add("DE");
cmbLang.Items.Add("FR");
cmbLang.Items.Add("IT");
cmbLang.Items.Add("BN");
cmbLang.SelectedIndex = 0; cmbLang.SelectedIndex = 0;
lstDestFiles.ItemsSource = convertedFiles; lstDestFiles.ItemsSource = convertedFiles;
@ -62,7 +67,7 @@ namespace OfficeConverter
backgroundWorker.DoWork += BackgroundWorker_DoWork; backgroundWorker.DoWork += BackgroundWorker_DoWork;
backgroundWorker.ProgressChanged += BackgroundWorker_ProgressChanged; backgroundWorker.ProgressChanged += BackgroundWorker_ProgressChanged;
backgroundWorker.RunWorkerCompleted += BackgroundWorker_RunWorkerCompleted; backgroundWorker.RunWorkerCompleted += BackgroundWorker_RunWorkerCompleted;
//lblState.Content = "Ready"; lblState.Content = "Ready";
cancellationTokenSource = new CancellationTokenSource(); cancellationTokenSource = new CancellationTokenSource();
} }
private void UpdateLog(string logEntry) private void UpdateLog(string logEntry)
@ -87,14 +92,14 @@ namespace OfficeConverter
private void btnConvert_Click(object sender, RoutedEventArgs e) private void btnConvert_Click(object sender, RoutedEventArgs e)
{ {
string folderPath = txtSourceFolder.Text; string folderPath = txtSourceFolder.Text;
//if (cmbLang.SelectedIndex == 0) if (cmbLang.SelectedIndex == 0)
//{ {
// lblState.Content = "Conversion in progress"; lblState.Content = "Conversion in progress";
//} }
//if (cmbLang.SelectedIndex == 1) if (cmbLang.SelectedIndex == 1)
//{ {
// lblState.Content = "Konvertierung läuft"; lblState.Content = "Konvertierung läuft";
//} }
doSubfolders = (bool)chkSubfolders.IsChecked; doSubfolders = (bool)chkSubfolders.IsChecked;
doReplace = (bool)chkReplace.IsChecked; doReplace = (bool)chkReplace.IsChecked;
@ -170,7 +175,7 @@ namespace OfficeConverter
// Enable buttons after conversion completion // Enable buttons after conversion completion
UpdateButtonStates(true); UpdateButtonStates(true);
grpSourceFiles.Header = "Queue"; grpSourceFiles.Header = "Queue";
MessageBox.Show("Done"); lblState.Content = msgConversionComplete;
}); });
} }
} }
@ -774,6 +779,8 @@ namespace OfficeConverter
btnExport.Content = "Export list"; btnExport.Content = "Export list";
errorFolderEmpty = "Destination folder is required when 'Replace files' is not selected."; errorFolderEmpty = "Destination folder is required when 'Replace files' is not selected.";
btnExportLog.Content = "Save Log"; btnExportLog.Content = "Save Log";
msgConversionInProgress = "Conversion in progress";
msgConversionComplete = "Conversion complete";
} }
private void setLangDE() private void setLangDE()
{ {
@ -792,7 +799,98 @@ namespace OfficeConverter
btnExport.Content = "Liste exportieren"; btnExport.Content = "Liste exportieren";
errorFolderEmpty = "Zielordner darf nicht leer sein, wenn 'Ersetze Dateien' nicht gewählt wurde."; errorFolderEmpty = "Zielordner darf nicht leer sein, wenn 'Ersetze Dateien' nicht gewählt wurde.";
btnExportLog.Content = "Log sichern"; btnExportLog.Content = "Log sichern";
msgConversionInProgress = "Konvertierung läuft";
msgConversionComplete = "Konvertierung abgeschlossen";
} }
private void setLangFR()
{
// Update labels, buttons, and headers in the "Folders" section
grpFolders.Header = "Dossiers";
lblSouceFolder.Content = "Dossier source";
lblDestFolder.Content = "Dossier de destination";
btnDestFolder.Content = "Parcourir";
btnSourceFolder.Content = "Parcourir";
chkReplace.Content = "Remplacer les fichiers (Préserver la structure des sous-dossiers)";
chkSubfolders.Content = "Inclure les sous-dossiers";
// Update labels and headers in the "Files" section
grpFiles.Header = "Fichiers";
grpSourceFiles.Header = "File d'attente";
grpDestFiles.Header = "Terminé";
// Update button labels in various sections
btnConvert.Content = "Convertir";
btnDelete.Content = "Supprimer les fichiers";
btnExport.Content = "Exporter la liste";
btnExportLog.Content = "Enregistrer le journal";
// Set error message for an empty destination folder
errorFolderEmpty = "Le dossier de destination est requis lorsque 'Remplacer les fichiers' n'est pas sélectionné.";
// Set messages for conversion progress and completion
msgConversionInProgress = "Conversion en cours";
msgConversionComplete = "Conversion terminée";
}
private void setLangIT()
{
// Update labels, buttons, and headers in the "Folders" section
grpFolders.Header = "Cartelle";
lblSouceFolder.Content = "Cartella di origine";
lblDestFolder.Content = "Cartella di destinazione";
btnDestFolder.Content = "Sfoglia";
btnSourceFolder.Content = "Sfoglia";
chkReplace.Content = "Sostituisci i file (Preserva la struttura delle sottocartelle)";
chkSubfolders.Content = "Includi sottocartelle";
// Update labels and headers in the "Files" section
grpFiles.Header = "File";
grpSourceFiles.Header = "Coda";
grpDestFiles.Header = "Completato";
// Update button labels in various sections
btnConvert.Content = "Converti";
btnDelete.Content = "Elimina i file";
btnExport.Content = "Esporta lista";
btnExportLog.Content = "Salva il registro";
// Set error message for an empty destination folder
errorFolderEmpty = "La cartella di destinazione è richiesta quando 'Sostituisci i file' non è selezionato.";
// Set messages for conversion progress and completion
msgConversionInProgress = "Conversione in corso";
msgConversionComplete = "Conversione completata";
}
private void setLangBN()
{
// Update labels, buttons, and headers in the "Folders" section
grpFolders.Header = "ফোল্ডার";
lblSouceFolder.Content = "উৎস ফোল্ডার";
lblDestFolder.Content = "গন্তব্য ফোল্ডার";
btnDestFolder.Content = "ব্রাউজ";
btnSourceFolder.Content = "ব্রাউজ";
chkReplace.Content = "ফাইল প্রতিস্থাপন (সাবফোল্ডারে ফোল্ডার কাঠামো সংরক্ষণ করুন)";
chkSubfolders.Content = "সাবফোল্ডারগুলি অন্তর্ভুক্ত করুন";
// Update labels and headers in the "Files" section
grpFiles.Header = "ফাইলগুলি";
grpSourceFiles.Header = "কিউ";
grpDestFiles.Header = "সম্পূর্ণ";
// Update button labels in various sections
btnConvert.Content = "কনভার্ট";
btnDelete.Content = "ফাইলগুলি মুছুন";
btnExport.Content = "তালিকা রপ্তানি করুন";
btnExportLog.Content = "লগ সংরক্ষণ করুন";
// Set error message for an empty destination folder
errorFolderEmpty = "ফাইলগুলি নির্বাচন করার সময় গন্তব্য ফোল্ডার প্রয়োজন।";
// Set messages for conversion progress and completion
msgConversionInProgress = "কনভার্ট চলছে";
msgConversionComplete = "কনভার্ট সম্পূর্ণ";
}
private void btnDestFolder_Click(object sender, RoutedEventArgs e) private void btnDestFolder_Click(object sender, RoutedEventArgs e)
{ {
using (var folderBrowserDialog = new Forms.FolderBrowserDialog()) using (var folderBrowserDialog = new Forms.FolderBrowserDialog())
@ -846,6 +944,17 @@ namespace OfficeConverter
case 1: case 1:
setLangDE(); setLangDE();
break; break;
case 2:
setLangFR();
break;
case 3:
setLangIT();
break;
case 4:
setLangBN();
break;
} }
} }
private void chkReplace_Clicked(object sender, RoutedEventArgs e) private void chkReplace_Clicked(object sender, RoutedEventArgs e)