DeliveryEntructOrderDetail.xaml.cs 813 B

12345678910111213141516171819202122232425
  1. using Muchinfo.MTPClient.Delivery.ViewModels;
  2. using System.Windows;
  3. namespace Muchinfo.MTPClient.Delivery.Views
  4. {
  5. /// <summary>
  6. /// Description for DeliveryEntructOrderDetail.
  7. /// </summary>
  8. public partial class DeliveryEntructOrderDetail : Window
  9. {
  10. /// <summary>
  11. /// Initializes a new instance of the DeliveryEntructOrderDetail class.
  12. /// </summary>
  13. public DeliveryEntructOrderDetail(Muchinfo.MTPClient.Data.Model.Delivery.DeliveryEntrustOrder orderItem)
  14. {
  15. InitializeComponent();
  16. this.DataContext = new DeliveryEntructOrderDetailViewModel(orderItem);
  17. }
  18. private void drag_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
  19. {
  20. this.DragMove();
  21. }
  22. }
  23. }