Check the quantity of goods specified in the order.

Goal: to provide for possible data entry error, so the user was not able to enter completely the wrong value. For example, when the number of items in the order should not be able to enter a negative value.

To do this, in the method set generate an exception if an invalid entry:

set
{
	// *** Start programmer edit section *** (Starokazache.The number Set start) 
	if (value < 0)
	{
		Exception ex = new Exception("The value of a quantity cannot be negative");
		throw ex;
	}
	// *** End programmer edit section *** (Starokazache.The number Set start) 
	this.fКоличество = value;
	// *** Start programmer edit section *** (Starokazache.Number of Set end) 

	// *** End programmer edit section *** (Starokazache.Number of Set end) 
}

When the exception is generated, in the form of a message about the incorrect input.

Go