/// <summary> /// This methods is called if the edit button is touched. The button is changed to display "done" and the /// list changes to editing mode (the delete icons appear). /// See, <see cref="TableSourceDevicesMain.WillBeginTableEditing(UITableView))"/> /// </summary> public void SetEditingState() { ((TableSourceDevicesMain)DevicesTable.Source).WillBeginTableEditing(DevicesTable); DevicesTable.SetEditing(true, true); NavigationItem.LeftBarButtonItem = done; }
/// <summary> /// This methods is called if the done button is touched. The button is changed to display "edit" and the /// list changes to normal mode (the delete icons disappear). /// See, <see cref="TableSourceDevicesMain.DidFinishTableEditing(UITableView)"/> /// </summary> public void CancelEditingState() { DevicesTable.SetEditing(false, true); NavigationItem.LeftBarButtonItem = edit; ((TableSourceDevicesMain)DevicesTable.Source).DidFinishTableEditing(DevicesTable); }