sharp-wawi/models/Part.cs

24 lines
447 B
C#
Raw Normal View History

2018-07-26 16:55:41 +02:00
using System;
namespace sharpwawi.models
{
public class Part : Entity
{
2018-07-27 13:09:20 +02:00
static Random random = new Random();
2018-07-26 16:55:41 +02:00
public Part()
{
2018-07-27 13:09:20 +02:00
Key = String.Format("P{0:0######}",random.Next() % 10000000);
2018-07-26 16:55:41 +02:00
}
2018-07-30 09:23:18 +02:00
public int NextRandom()
{
return random.Next();
}
public String Enhance(int n)
{
return string.Format("ENH({0})", n);
}
2018-07-26 16:55:41 +02:00
}
}