public EditFlightDetailsViewController(Flight flight, bool exists) : base(UITableViewStyle.Grouped, new RootElement (null)) { certification = LogBook.Pilot.Certification; this.exists = exists; Flight = flight; }
static RootElement CreatePilotCertificationElement(PilotCertification certification) { var root = new RootElement("Pilot Certification", new RadioGroup("PilotCertification", 0)); var section = new Section(); foreach (PilotCertification value in Enum.GetValues(typeof(PilotCertification))) { section.Add(new RadioElement(value.ToHumanReadableName(), "PilotCertification")); } root.Add(section); root.RadioSelected = (int)certification; return(root); }
public EditFlightDetailsViewController(Flight flight, bool exists) : base(UITableViewStyle.Grouped, new RootElement(null)) { certification = LogBook.Pilot.Certification; this.exists = exists; Flight = flight; }
static RootElement CreatePilotCertificationElement(PilotCertification certification) { var root = new RootElement ("Pilot Certification", new RadioGroup ("PilotCertification", 0)); var section = new Section (); foreach (PilotCertification value in Enum.GetValues (typeof (PilotCertification))) section.Add (new RadioElement (value.ToHumanReadableName (), "PilotCertification")); root.Add (section); root.RadioSelected = (int) certification; return root; }