public CreateSupplyViewModel(SupplyRepository supplyRepository, CreateSupplyWindow view)
 {
     View             = view;
     View.DataContext = this;
     SupplyRepository = supplyRepository;
     CreatedSupply    = new Supply();
     Delivered        = new List <DeliveredToWareHouse>();
     CreateProduct    = new RelayCommand(param => ExecuteCreateProduct());
     Accept           = new RelayCommand(param => ExecuteAccept());
     Time             = DateTime.Now;
     Date             = DateTime.Now;
 }
        private void CreateExecute()
        {
            var createWindow = new CreateSupplyWindow(SupplyRepository, View);

            createWindow.Show();
        }