Пример #1
0
        public override bool CanEditRow(UITableView tableView, NSIndexPath indexPath)
        {
            var model    = ModelForTableView(tableView);
            var aircraft = model.GetItem(indexPath.Section, indexPath.Row);

            return(LogBook.CanDelete(aircraft));
        }
Пример #2
0
        bool CanDeleteAircraftElement(Element element)
        {
            AircraftElement aircraft = element as AircraftElement;

            return(aircraft != null && LogBook.CanDelete(aircraft.Aircraft));
        }