public void ActivateROISet(String name) { foreach (ROISet rois in roiSets) { if (rois.Name.Equals(name)) { activeSet = rois; return; } } }
public static void ConnectROIs(GestureDetector gestureDetector) { // Activity: MainActivity List<ROI> mainROIs = new List<ROI>(); mainROIs.Add(ROIData.CreateROI("Music", 1, 1, "", 1, 1)); mainROIs.Add(ROIData.CreateROI("GPS", 2, 1, "", 1, 2)); mainROIs.Add(ROIData.CreateROI("Contacts", 3, 1, "", 2, 1)); mainROIs.Add(ROIData.CreateROI("Extras", 4, 1, "", 2, 2)); ROISet main = new ROISet(mainROIs, "StartMenu", true); gestureDetector.RegisterROISet(main); }
public void RegisterROISet(ROISet rois) { roiSets.Add(rois); if (activeSet == null) activeSet = rois; }