private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            ConsumableModel consumableModel = dgvConsumables.SelectedItem as ConsumableModel;

            if (consumableModel != null)
            {
                ConsumableDetails consumDet = new ConsumableDetails(this, consumableModel);
                consumDet.ShowDialog();
            }
        }
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            ConsumableDetails consumDet = new ConsumableDetails(this);

            consumDet.ShowDialog();
        }