diff --git a/ProductEventArgs.cs b/ProductEventArgs.cs index a79a6d6..b968c10 100644 --- a/ProductEventArgs.cs +++ b/ProductEventArgs.cs @@ -1,4 +1,7 @@ -namespace Events +using System; + + +namespace Events { /// /// Класс, который служит для передачи аргументов @@ -8,11 +11,28 @@ /* * TODO #1 Закончить определение класса ProductEventArgs */ - class ProductEventArgs + class ProductEventArgs : EventArgs { /* * TODO #2 Добавить определение необходимых компонент * класса ProductEventArgs */ + + public string OldValueName { get; } + public string NewValueName { get; } + public ProductEventArgs(string oldvaluename, string newvaluename) + { + OldValueName = oldvaluename; + NewValueName = newvaluename; + } + + public decimal OldValuePrice { get; } + public decimal NewValuePrice { get; } + public ProductEventArgs(decimal oldvalueprice, decimal newvalueprice) + { + OldValuePrice = oldvalueprice; + NewValuePrice = newvalueprice; + } + /**/ } }