reacctive ui form
This commit is contained in:
49
ClassLibraryStandard/Service/Program.cs
Normal file
49
ClassLibraryStandard/Service/Program.cs
Normal file
@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using ClassLibraryStandard;
|
||||
|
||||
namespace Service
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Hello World");
|
||||
|
||||
List<Participant> parlis = new List<Participant>();
|
||||
|
||||
Participant pr1 = new Participant();
|
||||
pr1.name = "Hans1";
|
||||
pr1.lastname = "Wurst1";
|
||||
parlis.Add(pr1);
|
||||
|
||||
Participant pr2 = new Participant();
|
||||
pr2.name = "Hans2";
|
||||
pr2.lastname = "Wurst2";
|
||||
parlis.Add(pr2);
|
||||
|
||||
Participant pr3 = new Participant();
|
||||
pr3.name = "Hans3";
|
||||
pr3.lastname = "Wurst3";
|
||||
parlis.Add(pr3);
|
||||
|
||||
Participant pr4 = new Participant();
|
||||
pr4.name = "Hans4";
|
||||
pr4.lastname = "Wurst4";
|
||||
parlis.Add(pr4);
|
||||
|
||||
|
||||
while (true)
|
||||
{
|
||||
Thread.Sleep(500);
|
||||
|
||||
|
||||
Random ran = new Random();
|
||||
int tmp = ran.Next(0, 3);
|
||||
|
||||
Console.WriteLine(parlis[tmp]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
12
ClassLibraryStandard/Service/Service.csproj
Normal file
12
ClassLibraryStandard/Service/Service.csproj
Normal file
@ -0,0 +1,12 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp2.2</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ClassLibraryStandard\EntitiesStandard.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
Reference in New Issue
Block a user