Jelajahi Sumber

История реализации в редактировании

Barsik Kato 2 tahun lalu
induk
melakukan
cc16c9e3ac
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 3 1
      Session1/Windows/EditAgent.xaml.cs

+ 3 - 1
Session1/Windows/EditAgent.xaml.cs

@@ -47,6 +47,8 @@ namespace Session1
             agentPhone.Text = selectedAgent.Phone;
             agentDirector.Text = selectedAgent.DirectorName;
             agentEmail.Text = selectedAgent.Email;
+            historyBox.ItemsSource = BaseConnect.baseModel.ProductSale.Where(x => x.AgentID == selectedAgent.ID).ToList();
+            historyBox.DisplayMemberPath = "SaleDate";
         }
 
         private void save_Click(object sender, RoutedEventArgs e)
@@ -105,7 +107,7 @@ namespace Session1
 
         private void imgPath_TextChanged(object sender, TextChangedEventArgs e)
         {
-
+            agentImg.Source = new BitmapImage(new Uri(imgPath.Text, UriKind.Relative));
         }
     }
 }