Closes all windows that are using given element to view/edit it. The item.
(ContentItem item)
| 235 | /// </summary> |
| 236 | /// <param name="item">The item.</param> |
| 237 | public void CloseAllEditors(ContentItem item) |
| 238 | { |
| 239 | for (int i = 0; i < Windows.Count; i++) |
| 240 | { |
| 241 | var win = Windows[i]; |
| 242 | if (win.IsEditingItem(item)) |
| 243 | { |
| 244 | win.Close(); |
| 245 | i--; |
| 246 | } |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | /// <summary> |
| 251 | /// Saves the current workspace layout. |
no test coverage detected