private static void OnProductSelectedChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e) { UInventoryItemAdjustment control = obj as UInventoryItemAdjustment; MInventoryAdjustment d = (MInventoryAdjustment)e.NewValue; updateGui(control, d); }
private void txtQuantity_TextChanged(object sender, TextChangedEventArgs e) { UInventoryItemAdjustment control = this; if (control.OnChanged != null) { control.OnChanged(control, null); } updateObject(); }
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; }
private void lkupItem_SelectedObjectChanged(object sender, EventArgs e) { UInventoryItemAdjustment control = this; if (control.OnChanged != null) { control.OnChanged(control, null); } if (lkupItem != null) { updateObject(); } }