Ejemplo n.º 1
0
        public override void LoadView()
        {
            base.LoadView();

            if (Aircraft == null)
            {
                Aircraft = new Aircraft();
                exists   = false;
            }

            Title = exists ? Aircraft.TailNumber : "New Aircraft";

            profile            = new EditAircraftProfileView(View.Bounds.Width);
            profile.Photograph = PhotoManager.Load(Aircraft.TailNumber, false);
            profile.TailNumber = Aircraft.TailNumber;
            profile.Model      = Aircraft.Model;
            profile.Make       = Aircraft.Make;

            Root.Add(CreateAircraftTypeSection());
            Root.Add(new Section("Notes")
            {
                (notes = new LimitedEntryElement(null, "Enter any additional notes about the aircraft here.",
                                                 Aircraft.Notes, 140)),
            });

            Root[0].HeaderView = profile;

            cancel = new UIBarButtonItem(UIBarButtonSystemItem.Cancel, OnCancelClicked);
            NavigationItem.LeftBarButtonItem = cancel;

            save = new UIBarButtonItem(UIBarButtonSystemItem.Save, OnSaveClicked);
            NavigationItem.RightBarButtonItem = save;
        }
Ejemplo n.º 2
0
 public PhotoActionSheetDelegate(EditAircraftProfileView profile)
 {
     this.profile = profile;
 }
Ejemplo n.º 3
0
 public AircraftPhotoPickerDelegate(EditAircraftProfileView profile)
 {
     this.profile = profile;
 }
Ejemplo n.º 4
0
 public PhotoActionSheetDelegate(EditAircraftProfileView profile)
 {
     this.profile = profile;
 }
Ejemplo n.º 5
0
 public AircraftPhotoPickerDelegate(EditAircraftProfileView profile)
 {
     this.profile = profile;
 }
        public override void LoadView()
        {
            base.LoadView ();

            if (Aircraft == null) {
                Aircraft = new Aircraft ();
                exists = false;
            }

            Title = exists ? Aircraft.TailNumber : "New Aircraft";

            profile = new EditAircraftProfileView (View.Bounds.Width);
            profile.Photograph = PhotoManager.Load (Aircraft.TailNumber, false);
            profile.TailNumber = Aircraft.TailNumber;
            profile.Model = Aircraft.Model;
            profile.Make = Aircraft.Make;

            Root.Add (CreateAircraftTypeSection ());
            Root.Add (new Section ("Notes") {
                (notes = new LimitedEntryElement (null, "Enter any additional notes about the aircraft here.",
                    Aircraft.Notes, 140)),
            });

            Root[0].HeaderView = profile;

            cancel = new UIBarButtonItem (UIBarButtonSystemItem.Cancel, OnCancelClicked);
            NavigationItem.LeftBarButtonItem = cancel;

            save = new UIBarButtonItem (UIBarButtonSystemItem.Save, OnSaveClicked);
            NavigationItem.RightBarButtonItem = save;
        }