コード例 #1
0
 private void UpdateOperations(LayerItem item, ListViewItem lvi)
 {
     for (var i = 2; i < lvi.SubItems.Count; i++)
     {
         var state = bool.Parse(lvi.SubItems[i].Text);
         if (state)
         {
             item.AddAllowedOperation(_allowed[i]);
         }
         else
         {
             item.RemoveAllowedOperation(_allowed[i]);
         }
     }
 }