Пример #1
0
 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();
 }
Пример #2
0
 private void SaveCustomItems_Click(object sender, RoutedEventArgs e)
 {
     CustomItemsManager.Save();
 }