private void Init(bool showLastTest, bool newTestAvailable, string inputData, string eyetrackerDataJson, OutputTestData2 testData) { labelVersion.Text = "Version: " + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); closeApp = true; if (showLastTest) { inputData = DataBaseWorker.LoadLastPursuitData(out date, out user_id, out eyetrackerDataJson, out testData); } this.date_loc = testData.date_loc; this.user_id = testData.user_id; date = testData.date; buttonNewTest.Enabled = newTestAvailable; //Console.WriteLine("selectedPath: " + selectedPath); toolStripStatusLabelFileName.Text = string.Format("{0}-us{1}", date_loc, user_id); eyetrackerDataL = ReviewClass.loadEyetrackerDataFromJson(eyetrackerDataJson); _testData = DataConverter.TestData2ToTestData1(testData); stimuloPersuitSetup = ReviewClass.loadPersuitDataFromJson(inputData); everythingOk = ReviewClass.eyetrackerDataFound(eyetrackerDataL) & ReviewClass.testDataFound(_testData) & ReviewClass.persuitDataFound(stimuloPersuitSetup); if (everythingOk) { plotGazeData2Control(); } }