|
@@ -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));
|
|
|
}
|
|
|
}
|
|
|
}
|