private void OpenEditItemWindow(string itemName) { try { for (int i = 0; i < parentKeysList.Count; i++) { if (String.Equals(itemName, root.children[i].Key)) { tempItem = new Item(root.children[i]); index = i; } } editItemWindow.a = tempItem; editItemWindow.Show(); } catch { editItemWindow = new EditItemWindow(); OpenEditItemWindow(itemName); } }
private void ShowEditItem(object parameter) { var window = new EditItemWindow(); window.Show(); }
private void ShowEditItem() { CloseEditItem(); _editItemWindow = new EditItemWindow(); _editItemWindow.Show(); }