Exemplo n.º 1
0
        private void BtnAddItemSupplier_Click(object sender, RoutedEventArgs e)
        {
            var itemSupplyManager = new frmAddItemSupplierForItem(_item, EditMode.Add);
            var result            = itemSupplyManager.ShowDialog();

            if (result == true)
            {
                LoadControls(_item);
                LoadItemSupplierGrid();
            }
            else
            {
                return;
            }
        }
Exemplo n.º 2
0
        private void DgItemSupplier_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            _itemSupplier = (ItemSupplier)dgItemSupplier.SelectedItem;

            var itemSupplyManager = new frmAddItemSupplierForItem(_item, _itemSupplier, EditMode.Edit);
            var result            = itemSupplyManager.ShowDialog();

            if (result == true)
            {
                LoadControls(_item);
                LoadItemSupplierGrid();
            }
            else
            {
                return;
            }
        }