Ejemplo n.º 1
0
        private static void OnProductSelectedChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            UInventoryItemAdjustment control = obj as UInventoryItemAdjustment;
            MInventoryAdjustment     d       = (MInventoryAdjustment)e.NewValue;

            updateGui(control, d);
        }
Ejemplo n.º 2
0
        private void txtQuantity_TextChanged(object sender, TextChangedEventArgs e)
        {
            UInventoryItemAdjustment control = this;

            if (control.OnChanged != null)
            {
                control.OnChanged(control, null);
            }

            updateObject();
        }
Ejemplo n.º 3
0
        private static void updateGui(UInventoryItemAdjustment control, MInventoryAdjustment v)
        {
            if ((v == null) || (control == null))
            {
                return;
            }

            MInventoryAdjustment o = new MInventoryAdjustment(v.GetDbObject().Clone());

            control.lkupItem.SelectedObject = o.ItemObj;
            control.txtQuantity.Text        = o.AdjQuantity;
            control.txtAmount.Text          = o.AdjAmount;
        }
Ejemplo n.º 4
0
        private void lkupItem_SelectedObjectChanged(object sender, EventArgs e)
        {
            UInventoryItemAdjustment control = this;

            if (control.OnChanged != null)
            {
                control.OnChanged(control, null);
            }

            if (lkupItem != null)
            {
                updateObject();
            }
        }