public AddDis(addDisViewModel addDisViewModel)
        {
            InitializeComponent();
            this.ListDM.ItemsSource = myvm.GetAllDeliveryMen().Select(m => m.ID);
            del = new DeliveryMen();
            dis = new Distribution();
            dater.SelectedDate = new DateTime(2020, 09, 30);



            this.dataGrid.DataContext = dis;
            myvm = addDisViewModel;
            this.buttonGrid.DataContext = myvm;
            this.checkGrid.DataContext  = myvm;
        }
        public AddDis()
        {
            InitializeComponent();

            del  = new DeliveryMen();
            myvm = new addDisViewModel(this, page);
            this.ListDM.ItemsSource = myvm.GetAllDeliveryMen().Select(m => m.ID);

            dis = new Distribution();
            dater.SelectedDate = DateTime.Today;


            this.dataGrid.DataContext = dis;

            this.buttonGrid.DataContext = myvm;
            this.checkGrid.DataContext  = myvm;
        }