Skip to content

Commit 12e1909

Browse files
committed
Korrektur - price = value; muss nach dem ggf. Eventausloesen kommen, sonst price - value immer == 0
1 parent bc5852e commit 12e1909

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

22_Events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,12 +503,12 @@ public class Stock{
503503
public decimal Price{
504504
get { return price; }
505505
set { if (price != value){
506-
price = value;
507506
if (OnPropertyPriceChanged != null){
508507
PriceChangedEventArgs myEventArgs = new PriceChangedEventArgs();
509508
myEventArgs.Difference = price - value;
510509
OnPropertyPriceChanged(this, myEventArgs);
511510
}
511+
price = value;
512512
}
513513
}
514514
}

0 commit comments

Comments
 (0)