public void Update(int speakerID) //, UIViewController view) { speakerId = speakerID; speakerView.Update(speakerID); if (speakerId > 1) { var speaker = BL.Managers.SpeakerManager.GetSpeaker(speakerId); var sessions = BL.Managers.SessionManager.GetSessions(); if (sessions != null) { session = (from s in sessions where s.SpeakerNames.IndexOf(speaker.Name) >= 0 select s).FirstOrDefault(); } sessionView.Update(session); } speakerView.SetNeedsDisplay(); if (Popover != null) { Popover.Dismiss(true); } }
public void Update(int speakerID) //, UIViewController view) { speakerId = speakerID; speakerView.Update (speakerID); if (speakerId > 1) { var speaker = BL.Managers.SpeakerManager.GetSpeaker (speakerId); var sessions = BL.Managers.SessionManager.GetSessions (); if (sessions != null) { session = (from s in sessions where s.SpeakerNames.IndexOf(speaker.Name) >= 0 select s).FirstOrDefault(); } sessionView.Update(session); } speakerView.SetNeedsDisplay(); if (Popover != null) { Popover.Dismiss (true); } }
//, UIViewController view) public void Update(int speakerID) { Console.WriteLine ("ssmd {0}", speakerID); speakerId = speakerID; speakerView.Update (speakerID); if (speakerId > 0) { var speaker = BL.Managers.SpeakerManager.GetSpeaker (speakerId); var sessions = BL.Managers.SessionManager.GetSessions (); if (sessions != null) { session = (from s in sessions where s.SpeakerNames.IndexOf(speaker.Name) >= 0 select s).FirstOrDefault(); } sessionView.Update(session); } speakerView.SetNeedsDisplay(); if (Popover != null) { Popover.Dismiss (true); } }