Oleg Kireev 3 سال پیش
والد
کامیت
33113e2578
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);
                 }