public EditFlightDetailsViewController(Flight flight, bool exists)
     : base(UITableViewStyle.Grouped, new RootElement (null))
 {
     certification = LogBook.Pilot.Certification;
     this.exists = exists;
     Flight = flight;
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public EditFlightDetailsViewController(Flight flight, bool exists) : base(UITableViewStyle.Grouped, new RootElement(null))
 {
     certification = LogBook.Pilot.Certification;
     this.exists   = exists;
     Flight        = flight;
 }
Esempio n. 4
0
        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;
        }