I fixed Cant with image addresses

This commit is contained in:
Nikita_Silantyev 2018-04-24 16:54:51 +04:00 committed by GitHub
parent 70c4e59623
commit 560a029a5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -253,14 +253,24 @@ namespace WindowsFormsApplication1
{
Directory.CreateDirectory(adres_papki);
}
if (adressBackground != adres_papki + "\\" + Path.GetFileName(adressBackground))
{
File.Copy(adressBackground, adres_papki + "\\" + Path.GetFileName(adressBackground), true);
}
Files.CreateStruct(filename);
Files.OpenMain(filename, PictureBoxBackground, adressBackground);
for (int nomer = 0; nomer < nomerPersa; nomer++)
{
if (adres_papki == adres_papki + "\\" + Path.GetFileName(persons[nomer].adress))
{
File.Copy(persons[nomer].adress, adres_papki + "\\" + Path.GetFileName(persons[nomer].adress), true);
}
// File.Copy(persons[nomer].adress, adres_papki + "\\" + Path.GetFileName(persons[nomer].adress), true);
if (persons[nomer].moveside == "Прямо")
{