Преглед на файлове

Revert "yyuy"

This reverts commit 33113e2578ff25d45340a0f8b2cff69bc0f5fc62.
Oleg Kireev преди 3 години
родител
ревизия
12bda5e01a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Hotel_Course_Project/StaffChangeOrAddPage.xaml.cs

+ 1 - 1
Hotel_Course_Project/StaffChangeOrAddPage.xaml.cs

@@ -170,9 +170,9 @@ namespace Hotel_Course_Project
             {
                 FilePath = openFileDialog.FileName;
                 string uriString = $"{FilePath}";
+                BitmapImage bitimage = new BitmapImage(new Uri(@uriString));
                 if (TestReceiveImage(uriString) == true)
                 {
-                    BitmapImage bitimage = new BitmapImage(new Uri(@uriString));
                     SContractPhoto.Source = bitimage;
                     contractImage = SomeMethods.ConvertBitmapImageToByte(bitimage);
                 }