private void LoadCustomItems_Click(object sender, RoutedEventArgs e) { if (!CustomItemsManager.Load()) { MessageBox.Show("There was an error loading custom items!", "Loading error", MessageBoxButton.OK, MessageBoxImage.Stop); return; } SlaveLordIP?.SetItem(null); CustomIP?.SetItem(null); tvItems.Items.Clear(); SetupTreeView(); CustomItemsReloaded?.Invoke(); }
private void SaveCustomItems_Click(object sender, RoutedEventArgs e) { CustomItemsManager.Save(); }