Hi folks,
Please forgive my lack of knowledge in this area, I'm a newbie to Visual Studio 17 C#!
I am trying to run the Execute() function in the Class below from a Windows Form.
See below for code...
For some reason, I just can't get it to work.
Would anyone be good enough to give me a clue as to how to do it?
I'm trying to run the function Execute() in the above code from the code below...
I would have thought that one has to create an object from the class by using...
then running...
... but that throws errors, like as if the Class wasn't there. Is it something to do with the private/static/public configuration?
Thanks,
Ray
Please forgive my lack of knowledge in this area, I'm a newbie to Visual Studio 17 C#!
I am trying to run the Execute() function in the Class below from a Windows Form.
See below for code...
C#:
using System;
namespace Tobii.Research.CodeExamples
{
internal static class EyeTrackingOperations_FindAllEyeTrackers
{
internal static EyeTrackerCollection Execute()
{
// <BeginExample>
Console.WriteLine("\nSearching for all eye trackers");
EyeTrackerCollection eyeTrackers = EyeTrackingOperations.FindAllEyeTrackers();
foreach (IEyeTracker eyeTracker in eyeTrackers)
{
Console.WriteLine("{0}, {1}, {2}, {3}, {4}, {5}", eyeTracker.Address, eyeTracker.DeviceName, eyeTracker.Model, eyeTracker.SerialNumber, eyeTracker.FirmwareVersion, eyeTracker.RuntimeVersion);
}
// <EndExample>
return eyeTrackers;
}
}
}
Would anyone be good enough to give me a clue as to how to do it?
I'm trying to run the function Execute() in the above code from the code below...
C#:
public Form1()
{
InitializeComponent();
????
}
C#:
EyeTrackingOperations_FindAllEyeTrackers track1 = new EyeTrackingOperations_FindAllEyeTrackers;
C#:
track1.Execute();
Thanks,
Ray
Last edited by a moderator: