From f652b0fd30a8109f218b1370e3863540734083f5 Mon Sep 17 00:00:00 2001 From: AnastasiaEr <47888565+AnastasiaEr@users.noreply.github.com> Date: Wed, 13 Mar 2019 12:30:54 +0300 Subject: [PATCH] Update ProductEventArgs.cs --- ProductEventArgs.cs | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) 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; + } + /**/ } }