RecieveInfoView.xaml.cs 750 B

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