예제 #1
0
 public PilotViewController(Pilot pilot)
     : base(UITableViewStyle.Grouped, new RootElement (null))
 {
     TabBarItem.Image = UIImage.FromBundle ("Images/user");
     Autorotate = true;
     Title = "Pilot";
     Pilot = pilot;
 }
예제 #2
0
파일: LogBook.cs 프로젝트: pahlot/FlightLog
        /// <summary>
        /// Update the pilot information.
        /// </summary>
        /// <param name='pilot'>
        /// The pilot to update.
        /// </param>
        public static bool Update(Pilot pilot)
        {
            if (sqlitedb.Update (pilot) > 0) {
                OnPilotUpdated ();
                pilot.OnUpdated ();
                return true;
            }

            return false;
        }