LondonBike.TripLog.RemoveElementAt C# (CSharp) Method

RemoveElementAt() public static method

public static RemoveElementAt ( int row ) : void
row int
return void
        public static void RemoveElementAt(int row)
        {
            All.RemoveAt(row);
            PersistToDisk();
        }

Usage Example

Example #1
0
            public override void CommitEditingStyle(UITableView tableView, UITableViewCellEditingStyle editingStyle, NSIndexPath indexPath)
            {
                //
                // In this method, we need to actually carry out the request
                //
                var section = Container.Root [indexPath.Section];
                var element = section [indexPath.Row];

                section.Remove(element);

                TripLog.RemoveElementAt(indexPath.Row);
            }