Vergessene Commit
This commit is contained in:
@@ -117,9 +117,8 @@ namespace SanSystem
|
|||||||
txt_temp_aussen.Update();
|
txt_temp_aussen.Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void btn_transfer_ftp_Click(object sender, EventArgs e)
|
private async void DownloadFromUV()
|
||||||
{
|
{
|
||||||
|
|
||||||
Progress<double> progress = new Progress<double>(x =>
|
Progress<double> progress = new Progress<double>(x =>
|
||||||
{
|
{
|
||||||
if (x < 0)
|
if (x < 0)
|
||||||
@@ -131,10 +130,6 @@ namespace SanSystem
|
|||||||
ftpProgress.Value = Convert.ToInt32(x);
|
ftpProgress.Value = Convert.ToInt32(x);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
filenames.Clear();
|
|
||||||
if (MessageBox.Show("Bitte stellen Sie sicher, dass der Server antwortet und dass nur die Dateien vorhanden sind!", "WARNUNG", MessageBoxButtons.OKCancel, MessageBoxIcon.Stop) == DialogResult.OK)
|
|
||||||
{
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -151,7 +146,7 @@ namespace SanSystem
|
|||||||
string dateiname = _tdateiname[_tdateiname.Length - 1];
|
string dateiname = _tdateiname[_tdateiname.Length - 1];
|
||||||
string ordner = _tdateiname[_tdateiname.Length - 2];
|
string ordner = _tdateiname[_tdateiname.Length - 2];
|
||||||
|
|
||||||
client.DownloadFile(Path.Combine(destinationPath, ordner, dateiname), file, true, FluentFTP.FtpVerify.None, progress);
|
await client.DownloadFileAsync(Path.Combine(destinationPath, ordner, dateiname), file, true, FluentFTP.FtpVerify.None, progress);
|
||||||
client.DeleteFile(file);
|
client.DeleteFile(file);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -160,8 +155,16 @@ namespace SanSystem
|
|||||||
{
|
{
|
||||||
MessageBox.Show("Die anlage reagiert nicht!");
|
MessageBox.Show("Die anlage reagiert nicht!");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void btn_transfer_ftp_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
filenames.Clear();
|
||||||
|
if (MessageBox.Show("Bitte stellen Sie sicher, dass der Server antwortet und dass nur die Dateien vorhanden sind!", "WARNUNG", MessageBoxButtons.OKCancel, MessageBoxIcon.Stop) == DialogResult.OK)
|
||||||
|
{
|
||||||
|
DownloadFromUV();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ListFiles(FtpClient client, string directory)
|
private void ListFiles(FtpClient client, string directory)
|
||||||
|
|||||||
@@ -23,8 +23,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SanShared", "SanShared\SanS
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Language", "Language\Language.csproj", "{BE364E88-92DA-4A6C-97E7-DDD7D887B3D4}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Language", "Language\Language.csproj", "{BE364E88-92DA-4A6C-97E7-DDD7D887B3D4}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestResource", "TestResource\TestResource.csproj", "{FA1E9A66-79EC-4D07-99DE-63FB489E718B}"
|
|
||||||
EndProject
|
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
@@ -67,10 +65,6 @@ Global
|
|||||||
{BE364E88-92DA-4A6C-97E7-DDD7D887B3D4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{BE364E88-92DA-4A6C-97E7-DDD7D887B3D4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{BE364E88-92DA-4A6C-97E7-DDD7D887B3D4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{BE364E88-92DA-4A6C-97E7-DDD7D887B3D4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{BE364E88-92DA-4A6C-97E7-DDD7D887B3D4}.Release|Any CPU.Build.0 = Release|Any CPU
|
{BE364E88-92DA-4A6C-97E7-DDD7D887B3D4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{FA1E9A66-79EC-4D07-99DE-63FB489E718B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{FA1E9A66-79EC-4D07-99DE-63FB489E718B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{FA1E9A66-79EC-4D07-99DE-63FB489E718B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{FA1E9A66-79EC-4D07-99DE-63FB489E718B}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|||||||
Reference in New Issue
Block a user