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
25 changes: 23 additions & 2 deletions ProductEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Events
namespace Events
{
/// <summary>
/// Класс, который служит для передачи аргументов
Expand All @@ -8,11 +8,32 @@
/*
* TODO #1 Закончить определение класса ProductEventArgs
*/
class ProductEventArgs
public class EventArgs
{
public static readonly EventArgs Empty = new EventArgs();
public EventArgs() { }
}


class ProductEventArgs : EventArgs
{

public string oldName { get; }
public decimal oldPrice { get; }
/*
* TODO #2 Добавить определение необходимых компонент
* класса ProductEventArgs
*/

public ProductEventArgs(string oldName)
{
this.oldName = oldName;
}

public ProductEventArgs(decimal oldPrice)
{
this.oldName = oldPrice;

}
}
}