Esempio n. 1
0
        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();
        }
Esempio n. 3
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            ConsumableUpdates consumableUpdate = new ConsumableUpdates(this, consumableStockModel);

            consumableUpdate.ShowDialog();
        }