/////////////////////////////////////////////////////////////////////// // /////////////////////////////////////////////////////////////////////// void Experiment_ExperimentUpdated(object sender, ExperimentUpdatedEventArgs e) { // Time Stamp DateTimeOffset dateTimeOffset = DateTimeOffset.Now; // Stream Writer Set to append if the file is there using (StreamWriter fs = new StreamWriter(fullName_, true)) { if (fs != null) { fs.WriteLine(dateTimeOffset.ToString() + " ExperimentUpdated Event"); } } }
/////////////////////////////////////////////////////////////////////// void experiment__ExperimentUpdated(object sender, ExperimentUpdatedEventArgs e) { bool hasCamera = CheckSystem(); // Update on change only if (menuEnabled_ != hasCamera) { menuEnabled_ = hasCamera; RequestUIRefresh(UISupport.Menu); } // Building a system can change the sensor dimensions if (hasCamera) { CreateTransformationObject(); } }