コード例 #1
0
        private void HandleKeyMoved(NSIndexPath destination)
        {
            var sourceCell = _loadedConfiguration.Keys[_selIndPath.Row];

            _loadedConfiguration.Keys.RemoveAt(_selIndPath.Row);
            _loadedConfiguration.Keys.Insert(destination.Row, sourceCell);
            KeysCollectionView.ReloadData();
            ConfigsEngine.SaveConfiguration(_loadedConfiguration);
        }
コード例 #2
0
 /// <summary>
 /// The edit key view controller has been dismissed
 /// </summary>
 /// <param name="save">If set to <c>true</c> reload the configuration .</param>
 /// <param name="applyStyleToAll">If set to <c>true</c> apply the style to all keys</param>
 void HandleDismissEditKeyVC(bool save, bool applyStyleToAll)
 {
     if (save)
     {
         if (applyStyleToAll)
         {
             ApplyStyleToAllKeys(_editKeyViewController._loadedKey);
         }
         ConfigsEngine.SaveConfiguration(_loadedConfiguration);
         KeysCollectionView.ReloadData();
     }
     _editKeyViewController.DismissViewController(true, null);
 }