private void cam_mem_test_Click(object sender, EventArgs e) { tricam.TestCameraMemory(); tricam.TestPcbMemory1(); tricam.TestPcbMemory2(); if (tricam.isMemoryTest1Success && tricam.isMemoryTest2Success && tricam.isCameraMemoryTestSuccess) { Globals.currentSettings.memoryTestStruct.MemoryTest = PassStr; } else { Globals.currentSettings.memoryTestStruct.MemoryTest = FailStr; } }