コード例 #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();
            }
        }
コード例 #2
0
        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();
        }