示例#1
0
        void ReleaseDesignerOutlets()
        {
            if (DevicesMainNavBar != null)
            {
                DevicesMainNavBar.Dispose();
                DevicesMainNavBar = null;
            }

            if (DevicesTable != null)
            {
                DevicesTable.Dispose();
                DevicesTable = null;
            }

            if (SettingsButton != null)
            {
                SettingsButton.Dispose();
                SettingsButton = null;
            }
        }
示例#2
0
 /// <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;
 }
示例#3
0
 /// <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);
 }