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

            consumableUpdate.ShowDialog();
        }