private void btnEdit_Click(object sender, RoutedEventArgs e) { ConsumableModel consumMod = dgvConsumableOnStocks.SelectedItem as ConsumableModel; if (consumMod != null) { ConsumableUpdates consumableUpdate = new ConsumableUpdates(this, consumMod, consumableStockModel.ID, consumMod.ID); consumableUpdate.ShowDialog(); } }
private void btnAddConsumable_Click(object sender, RoutedEventArgs e) { ConsumableUpdates consumeUpdate = new ConsumableUpdates(this); consumeUpdate.ShowDialog(); }
private void btnAdd_Click(object sender, RoutedEventArgs e) { ConsumableUpdates consumableUpdate = new ConsumableUpdates(this, consumableStockModel); consumableUpdate.ShowDialog(); }