/////////////////////////////////////////////////////////////////////////////// // Construction and Initializing methods // /////////////////////////////////////////////////////////////////////////////// #region CONSTRUCTION /// <summary> /// Initializes a new instance of the MainForm class. /// </summary> /// <param name="fileName">A <see cref="string"/> with an optional filename /// from the command line to load.</param> public MainForm(string fileName) { if (fileName == string.Empty) { this.loadFileFromCommandLine = false; } else { this.loadFileFromCommandLine = true; this.commandLineFileName = fileName; } this.InitializeComponent(); this.InitAccelerators(); try { TobiiTracker.StaticInitialize(); } catch (Exception ex) { ExceptionMethods.ProcessErrorMessage( "The tobii SDK could not be initialized, the tobii record interface will not be" + "available. Please install apple bonjour, if this is a module load error." + ex.Message); } }
/// <summary> /// Initializes a new instance of the SelectTracker class. /// </summary> public SelectTracker() { this.InitializeComponent(); try { TobiiTracker.StaticInitialize(); } catch (Exception ex) { ExceptionMethods.ProcessErrorMessage( "The tobii SDK could not be initialized, the tobii record interface will not be" + "available. Please install apple bonjour, if this is a module load error." + ex.Message); } this.eyetrackerUpdateTimer = new Timer { Interval = 1000, Enabled = true }; this.eyetrackerUpdateTimer.Tick += this.EyetrackerUpdateTimerTick; }