//, UIViewController speakerView) public SpeakerSessionMasterDetail(int speakerID) { speakerId = speakerID; navBar = new UINavigationBar(new RectangleF(0,0,768, 44)); navBar.SetItems(new UINavigationItem[]{new UINavigationItem("Speaker & Session Info")},false); View.BackgroundColor = UIColor.LightGray; View.Frame = new RectangleF(0,0,768,768); speakerView = new SpeakerView(-1); speakerView.Frame = new RectangleF(0,44,colWidth1,728); speakerView.AutoresizingMask = UIViewAutoresizing.FlexibleHeight; sessionView = new SessionView(false); sessionView.Frame = new RectangleF(colWidth1+1,44,colWidth2,728); sessionView.AutoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleWidth; View.AddSubview (speakerView); View.AddSubview (sessionView); View.AddSubview (navBar); // if (_speakerID > 1) // { // var speaker = BL.Managers.SpeakerManager.GetSpeaker (_speakerID); // var _sessions = BL.Managers.SessionManager.GetSessions (); // if (_sessions != null) // { // _session = (from session in _sessions // where session.SpeakerNames.IndexOf(speaker.Name) >= 0 // select session).FirstOrDefault(); // } // // _sessionView = new SessionView(_session); // _ssv.Frame = new RectangleF(colWidth1+1,0,colWidth2,728); // // this.View.AddSubview (_ssv); // } }
public SessionSpeakersMasterDetail(int speakerID) { speakerId = speakerID; navBar = new UINavigationBar(new RectangleF(0,0,768, 44)); navBar.SetItems(new UINavigationItem[]{new UINavigationItem("Session & Speaker Info")},false); View.BackgroundColor = UIColor.LightGray; View.Frame = new RectangleF(0,0,768,768); sessionView = new SessionView(this); sessionView.Frame = new RectangleF(0,44,colWidth1,728); sessionView.AutoresizingMask = UIViewAutoresizing.FlexibleHeight; speakerView = new SpeakerView(-1); speakerView.Frame = new RectangleF(colWidth1+1,44,colWidth2,728); speakerView.AutoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleWidth; View.AddSubview (speakerView); View.AddSubview (sessionView); View.AddSubview (navBar); }