/// <summary> /// Name: Btn_MoreInfo_TouchUpInside /// Purpose: /// Parameters: /// Returns: /// </summary> /// <param name="sender">Sender.</param> /// <param name="e">E.</param> void Btn_MoreInfo_TouchUpInside (object sender, EventArgs e) { DisplayInfoView display; if (isInSectionView) { Section_Mobile selectedSection = rok_Library.sections_Dictionary [current_Section]; display = new DisplayInfoView(selectedSection,rok_Library){Frame = View.Frame}; } else { int cp = int.Parse (string.Format ("{0}{1}",current_Section,current_Pannel)); Pannel selectedPannel = rok_Library.pannels_Dictionary [cp]; display = new DisplayInfoView(selectedPannel,rok_Library){Frame = View.Frame}; } this.View.AddSubview (display); }
/// <summary> /// Name: Btn_HotSpots_TouchUpInside /// Purpose: Does different things depending on if the view is currently showing hotspots. /// Parameters: /// Returns: /// </summary> /// <param name="sender">Sender.</param> /// <param name="e">E.</param> void Btn_HotSpotsIndividual_TouchUpInside (object sender, EventArgs e) { UIButton hotSpotBTN = (UIButton)sender; int id = (int)hotSpotBTN.Tag; ImageMapping im = rok_Library.imageMapping_Dictionary [id]; DisplayInfoView display; display = new DisplayInfoView (im, rok_Library){ Frame = View.Frame }; this.View.AddSubview (display); removeHotSpotButtons (); }