public RewriteMaterialWindow(ApplicationContext db, Material material, Employee employee)
        {
            InitializeComponent();
            RewriteMaterialViewModelcs rewriteMaterialViewModelcs = new RewriteMaterialViewModelcs(db, material, employee);

            rewriteMaterialViewModelcs.ExitCommand = new Commands.RelayCommand(x => this.Close());
            this.DataContext = rewriteMaterialViewModelcs;
        }
        public RewriteMaterialWindow(Material material, Employee employee, HttpClient client)
        {
            InitializeComponent();
            RewriteMaterialViewModelcs rewriteMaterialViewModelcs = new RewriteMaterialViewModelcs(material, employee, client);

            rewriteMaterialViewModelcs.ExitCommand = new Commands.RelayCommand(x => this.Close());
            this.DataContext = rewriteMaterialViewModelcs;
        }