SetConnection() public method

public SetConnection ( ScannerConnection connection ) : void
connection ScannerConnection
return void
Beispiel #1
0
        async void StartUrhoApp()
        {
            app = await urhoSurface.Show <UrhoApp>(new Urho.ApplicationOptions(assetsFolder: "Data"));

            app.SetConnection(connection);
            Urho.Application.InvokeOnMain(() =>
            {
                foreach (var surface in space.Surfaces)
                {
                    app.AddOrUpdateSurface(surface.Value);
                }
                foreach (var bulb in space.Bulbs)
                {
                    AddBulb(bulb);
                }
            });
        }
Beispiel #2
0
		async void StartUrhoApp()
		{
			app = await urhoSurface.Show<UrhoApp>(new Urho.ApplicationOptions(assetsFolder: "Data"));
			app.SetConnection(connection);
			Urho.Application.InvokeOnMain(() =>
				{
					foreach (var surface in space.Surfaces)
						app.AddOrUpdateSurface(surface.Value);
					foreach (var bulb in space.Bulbs)
						AddBulb(bulb);
				});
		}