コード例 #1
0
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            ConsumableModel consumableModel = dgvConsumables.SelectedItem as ConsumableModel;

            if (consumableModel != null)
            {
                ConsumableDetails consumDet = new ConsumableDetails(this, consumableModel);
                consumDet.ShowDialog();
            }
        }
コード例 #2
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            ConsumableDetails consumDet = new ConsumableDetails(this);

            consumDet.ShowDialog();
        }