public ConsumableUpdates(ConsumableStocksDetails csd, ConsumableModel cm, string consumeID, string recID) { consumableStockDetWindow = csd; consumeStockModel = cm; consumableID = consumeID; recordID = recID; InitializeComponent(); }
private void btnViewConsumableDetails_Click(object sender, RoutedEventArgs e) { ConsumableModel consumableModel = dgvConsumableStocks.SelectedItem as ConsumableModel; if (consumableModel != null) { ConsumableStocksDetails csd = new ConsumableStocksDetails(this, consumableModel); csd.ShowDialog(); } else { MessageBox.Show("No record selected!"); } }
public ConsumableUpdates(ConsumableStocksDetails csd, ConsumableModel cm) { consumableStockDetWindow = csd; consumeStockModel = cm; InitializeComponent(); }