22 lines
No EOL
474 B
C#
22 lines
No EOL
474 B
C#
namespace MatterHackers.MatterControl.DataStorage
|
|
{
|
|
internal class GenerateSampleData
|
|
{
|
|
public GenerateSampleData()
|
|
{
|
|
AddPrinters();
|
|
}
|
|
|
|
private void AddPrinters()
|
|
{
|
|
for (int index = 1; index <= 5; index++)
|
|
{
|
|
Printer printer = new Printer();
|
|
printer.ComPort = string.Format("COM{0}", index);
|
|
printer.BaudRate = "250000";
|
|
printer.Name = string.Format("Printer {0}", index);
|
|
Datastore.Instance.dbSQLite.Insert(printer);
|
|
}
|
|
}
|
|
}
|
|
} |