Пример #1
0
        private static void OnProductSelectedChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            UInventoryItemAdjustment control = obj as UInventoryItemAdjustment;
            MInventoryAdjustment     d       = (MInventoryAdjustment)e.NewValue;

            updateGui(control, d);
        }
Пример #2
0
        private void txtQuantity_TextChanged(object sender, TextChangedEventArgs e)
        {
            UInventoryItemAdjustment control = this;

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

            updateObject();
        }
Пример #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;
        }
Пример #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();
            }
        }