public ChangeOnStockProductsNumberDialogViewModel(MainViewModel mainViewModel)
        {
            _mainViewModel = mainViewModel;
            _selectedProduct = mainViewModel.OnStockProductsViewModel.SelectedProduct;

            ChangeNumberCommand = new DelegateCommand(ChangeNumber, () => Validate());

            Number = _selectedProduct.IDs.Count;
        }
        public RepairOnStockProductDialogViewModel(MainViewModel mainViewModel)
        {
            _mainViewModel = mainViewModel;

            _productToRepair = mainViewModel.OnStockProductsViewModel.SelectedProduct;

            RepairProductCommand = new DelegateCommand(RepairProduct, Validate);

            Repairers = mainViewModel.Context.Repairers.ToList();
            SelectedRepairer = Repairers.FirstOrDefault();
        }