reacctive ui form
This commit is contained in:
		
							
								
								
									
										37
									
								
								ClassLibraryStandard/ClassLibraryStandard.sln
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								ClassLibraryStandard/ClassLibraryStandard.sln
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,37 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					Microsoft Visual Studio Solution File, Format Version 12.00
 | 
				
			||||||
 | 
					# Visual Studio Version 16
 | 
				
			||||||
 | 
					VisualStudioVersion = 16.0.28803.352
 | 
				
			||||||
 | 
					MinimumVisualStudioVersion = 10.0.40219.1
 | 
				
			||||||
 | 
					Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EntitiesStandard", "ClassLibraryStandard\EntitiesStandard.csproj", "{7EBB020C-61AF-4B22-BE7D-288883B62A3C}"
 | 
				
			||||||
 | 
					EndProject
 | 
				
			||||||
 | 
					Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UI", "UI\UI.csproj", "{AE1BA313-3538-4C80-82FB-5D6B2DF29FF2}"
 | 
				
			||||||
 | 
					EndProject
 | 
				
			||||||
 | 
					Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Service", "Service\Service.csproj", "{9656A0D3-142D-4CF6-80D3-44FB0F094ABE}"
 | 
				
			||||||
 | 
					EndProject
 | 
				
			||||||
 | 
					Global
 | 
				
			||||||
 | 
						GlobalSection(SolutionConfigurationPlatforms) = preSolution
 | 
				
			||||||
 | 
							Debug|Any CPU = Debug|Any CPU
 | 
				
			||||||
 | 
							Release|Any CPU = Release|Any CPU
 | 
				
			||||||
 | 
						EndGlobalSection
 | 
				
			||||||
 | 
						GlobalSection(ProjectConfigurationPlatforms) = postSolution
 | 
				
			||||||
 | 
							{7EBB020C-61AF-4B22-BE7D-288883B62A3C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
				
			||||||
 | 
							{7EBB020C-61AF-4B22-BE7D-288883B62A3C}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
				
			||||||
 | 
							{7EBB020C-61AF-4B22-BE7D-288883B62A3C}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
				
			||||||
 | 
							{7EBB020C-61AF-4B22-BE7D-288883B62A3C}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
				
			||||||
 | 
							{AE1BA313-3538-4C80-82FB-5D6B2DF29FF2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
				
			||||||
 | 
							{AE1BA313-3538-4C80-82FB-5D6B2DF29FF2}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
				
			||||||
 | 
							{AE1BA313-3538-4C80-82FB-5D6B2DF29FF2}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
				
			||||||
 | 
							{AE1BA313-3538-4C80-82FB-5D6B2DF29FF2}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
				
			||||||
 | 
							{9656A0D3-142D-4CF6-80D3-44FB0F094ABE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
				
			||||||
 | 
							{9656A0D3-142D-4CF6-80D3-44FB0F094ABE}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
				
			||||||
 | 
							{9656A0D3-142D-4CF6-80D3-44FB0F094ABE}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
				
			||||||
 | 
							{9656A0D3-142D-4CF6-80D3-44FB0F094ABE}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
				
			||||||
 | 
						EndGlobalSection
 | 
				
			||||||
 | 
						GlobalSection(SolutionProperties) = preSolution
 | 
				
			||||||
 | 
							HideSolutionNode = FALSE
 | 
				
			||||||
 | 
						EndGlobalSection
 | 
				
			||||||
 | 
						GlobalSection(ExtensibilityGlobals) = postSolution
 | 
				
			||||||
 | 
							SolutionGuid = {C416241B-56B9-4B40-815B-13E67C2B7285}
 | 
				
			||||||
 | 
						EndGlobalSection
 | 
				
			||||||
 | 
					EndGlobal
 | 
				
			||||||
@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					<Project Sdk="Microsoft.NET.Sdk">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  <PropertyGroup>
 | 
				
			||||||
 | 
					    <TargetFramework>netstandard2.0</TargetFramework>
 | 
				
			||||||
 | 
					  </PropertyGroup>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					</Project>
 | 
				
			||||||
							
								
								
									
										23
									
								
								ClassLibraryStandard/ClassLibraryStandard/Partisipant.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								ClassLibraryStandard/ClassLibraryStandard/Partisipant.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,23 @@
 | 
				
			|||||||
 | 
					using System;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace ClassLibraryStandard
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    public class Participant
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public string name { get; set; }
 | 
				
			||||||
 | 
					        public string lastname { get; set; }
 | 
				
			||||||
 | 
					        public string geburtstag { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public Participant()
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            geburtstag = DateTime.Today.ToString();
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public override string ToString()
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            return name.ToString() + " " + lastname.ToString();
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										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>
 | 
				
			||||||
							
								
								
									
										12
									
								
								ClassLibraryStandard/UI/Program.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								ClassLibraryStandard/UI/Program.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					using System;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace UI
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    class Program
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        static void Main(string[] args)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            Console.WriteLine("service");
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										12
									
								
								ClassLibraryStandard/UI/UI.csproj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								ClassLibraryStandard/UI/UI.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>
 | 
				
			||||||
@ -22,7 +22,7 @@ namespace WindowsFormsAppReact
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        private void Button1_Click(object sender, EventArgs e)
 | 
					        private void Button1_Click(object sender, EventArgs e)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            Subject.ObserveOn(SynchronizationContext.Current).Subscribe((i) =>
 | 
					            Subject.Sample(TimeSpan.FromMilliseconds(20)).ObserveOn(SynchronizationContext.Current).Subscribe((i) =>
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                label1.Text = i.ToString();
 | 
					                label1.Text = i.ToString();
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
@ -36,7 +36,7 @@ namespace WindowsFormsAppReact
 | 
				
			|||||||
        {
 | 
					        {
 | 
				
			||||||
            Task.Run(() =>
 | 
					            Task.Run(() =>
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    for (int i = 0; i < 100; i++)
 | 
					                    for (int i = 0; i < 10000000000; i++)
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        Subject.OnNext(i);
 | 
					                        Subject.OnNext(i);
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user