Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions ProductEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
namespace Events
using System;


namespace Events
{
/// <summary>
/// Класс, который служит для передачи аргументов
Expand All @@ -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;
}
/**/
}
}