using Muchinfo.MTPClient.Delivery.ViewModels; using System.Windows; namespace Muchinfo.MTPClient.Delivery.Views { /// /// Description for DeliveryEntructOrderDetail. /// public partial class DeliveryEntructOrderDetail : Window { /// /// Initializes a new instance of the DeliveryEntructOrderDetail class. /// public DeliveryEntructOrderDetail(Muchinfo.MTPClient.Data.Model.Delivery.DeliveryEntrustOrder orderItem) { InitializeComponent(); this.DataContext = new DeliveryEntructOrderDetailViewModel(orderItem); } private void drag_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e) { this.DragMove(); } } }