Skip to content

Commit

Permalink
Minor Housecleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
DelnarErsike committed Mar 9, 2024
1 parent 7e898e2 commit ad68d64
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 14 deletions.
3 changes: 1 addition & 2 deletions Chummer/Backend/Equipment/Armor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
using System.Windows.Forms;
using System.Xml;
using System.Xml.XPath;
using Chummer.Backend.Attributes;
using NLog;

namespace Chummer.Backend.Equipment
Expand All @@ -40,7 +39,7 @@ namespace Chummer.Backend.Equipment
/// </summary>
[HubClassTag("SourceID", true, "TotalArmor", "Extra")]
[DebuggerDisplay("{DisplayName(GlobalSettings.InvariantCultureInfo, GlobalSettings.DefaultLanguage)}")]
public sealed class Armor : IHasInternalId, IHasName, IHasSourceId, IHasXmlDataNode, IHasNotes, ICanSell, IHasChildrenAndCost<Gear>, IHasCustomName, IHasLocation, ICanEquip, IHasSource, IHasRating, ICanSort, IHasWirelessBonus, IHasStolenProperty, ICanPaste, IHasGear, IHasMatrixAttributes, ICanBlackMarketDiscount, IDisposable, IAsyncDisposable, IHasCharacterObject
public sealed class Armor : IHasInternalId, IHasName, IHasSourceId, IHasXmlDataNode, IHasNotes, ICanSell, IHasChildrenAndCost<Gear>, IHasCustomName, IHasLocation, ICanEquip, IHasSource, IHasRating, ICanSort, IHasWirelessBonus, IHasStolenProperty, ICanPaste, IHasGear, IHasMatrixAttributes, ICanBlackMarketDiscount, IDisposable, IAsyncDisposable
{
private static readonly Lazy<Logger> s_ObjLogger = new Lazy<Logger>(LogManager.GetCurrentClassLogger);
private static Logger Log => s_ObjLogger.Value;
Expand Down
1 change: 0 additions & 1 deletion Chummer/Backend/Equipment/ArmorMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
using System.Windows.Forms;
using System.Xml;
using System.Xml.XPath;
using Chummer.Backend.Attributes;
using NLog;

namespace Chummer.Backend.Equipment
Expand Down
2 changes: 1 addition & 1 deletion Chummer/Backend/Equipment/Cyberware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace Chummer.Backend.Equipment
public sealed class Cyberware : ICanPaste, IHasChildrenAndCost<Cyberware>, IHasGear, IHasName, IHasInternalId,
IHasSourceId, IHasXmlDataNode,
IHasMatrixAttributes, IHasNotes, ICanSell, IHasRating, IHasSource, ICanSort, IHasStolenProperty,
IHasWirelessBonus, ICanBlackMarketDiscount, IHasLockObject, IHasCharacterObject
IHasWirelessBonus, ICanBlackMarketDiscount, IHasLockObject
{
private static readonly Lazy<Logger> s_ObjLogger = new Lazy<Logger>(LogManager.GetCurrentClassLogger);
private static Logger Log => s_ObjLogger.Value;
Expand Down
1 change: 0 additions & 1 deletion Chummer/Backend/Equipment/Drugs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
using System.Windows.Forms;
using System.Xml;
using System.Xml.XPath;
using Chummer.Backend.Attributes;
using NLog;

namespace Chummer.Backend.Equipment
Expand Down
5 changes: 3 additions & 2 deletions Chummer/Backend/Equipment/Gear.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
using System.Xml;
using System.Xml.XPath;
using Chummer.Annotations;
using Chummer.Backend.Attributes;
using NLog;

namespace Chummer.Backend.Equipment
Expand All @@ -45,7 +44,7 @@ namespace Chummer.Backend.Equipment
[DebuggerDisplay("{DisplayName(GlobalSettings.InvariantCultureInfo, GlobalSettings.DefaultLanguage)}")]
public sealed class Gear : IHasChildrenAndCost<Gear>, IHasName, IHasSourceId, IHasInternalId, IHasXmlDataNode, IHasMatrixAttributes,
IHasNotes, ICanSell, IHasLocation, ICanEquip, IHasSource, IHasRating, INotifyMultiplePropertiesChangedAsync, ICanSort,
IHasStolenProperty, ICanPaste, IHasWirelessBonus, IHasGear, ICanBlackMarketDiscount, IDisposable, IAsyncDisposable, IHasCharacterObject
IHasStolenProperty, ICanPaste, IHasWirelessBonus, IHasGear, ICanBlackMarketDiscount, IDisposable, IAsyncDisposable
{
private static readonly Lazy<Logger> s_ObjLogger = new Lazy<Logger>(LogManager.GetCurrentClassLogger);
private static Logger Log => s_ObjLogger.Value;
Expand Down Expand Up @@ -5501,6 +5500,7 @@ public async Task<int> CheckRestrictedGear(IDictionary<int, int> dicRestrictedGe
/// </summary>
/// <param name="cmsGear">ContextMenuStrip for the Gear to use.</param>
/// <param name="cmsCustomGear">ContextMenuStrip for the Gear to use if it can be renamed the way Custom Gear can (in Create mode).</param>
/// <param name="token">Cancellation token to listen to.</param>
public async Task<TreeNode> CreateTreeNode(ContextMenuStrip cmsGear, ContextMenuStrip cmsCustomGear, CancellationToken token = default)
{
token.ThrowIfCancellationRequested();
Expand Down Expand Up @@ -5552,6 +5552,7 @@ public bool Stolen
/// <param name="objParentNode">Parent node to which to append children gear.</param>
/// <param name="cmsGear">ContextMenuStrip for the Gear's children to use to use.</param>
/// <param name="cmsCustomGear">ContextMenuStrip for the Gear's children to use if they can be renamed the way Custom Gear can (in Create mode).</param>
/// <param name="token">Cancellation token to listen to.</param>
public async Task BuildChildrenGearTree(TreeNode objParentNode, ContextMenuStrip cmsGear, ContextMenuStrip cmsCustomGear, CancellationToken token = default)
{
token.ThrowIfCancellationRequested();
Expand Down
3 changes: 2 additions & 1 deletion Chummer/Backend/Equipment/Vehicle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace Chummer.Backend.Equipment
/// </summary>
[HubClassTag("SourceID", true, "Name", null)]
[DebuggerDisplay("{DisplayName(GlobalSettings.DefaultLanguage)}")]
public sealed class Vehicle : IHasInternalId, IHasName, IHasSourceId, IHasXmlDataNode, IHasMatrixAttributes, IHasNotes, ICanSell, IHasCustomName, IHasPhysicalConditionMonitor, IHasLocation, IHasSource, ICanSort, IHasGear, IHasStolenProperty, ICanPaste, ICanBlackMarketDiscount, IDisposable, IAsyncDisposable, IHasCharacterObject
public sealed class Vehicle : IHasInternalId, IHasName, IHasSourceId, IHasXmlDataNode, IHasMatrixAttributes, IHasNotes, ICanSell, IHasCustomName, IHasPhysicalConditionMonitor, IHasLocation, IHasSource, ICanSort, IHasGear, IHasStolenProperty, ICanPaste, ICanBlackMarketDiscount, IDisposable, IAsyncDisposable
{
private static readonly Lazy<Logger> s_ObjLogger = new Lazy<Logger>(LogManager.GetCurrentClassLogger);
private static Logger Log => s_ObjLogger.Value;
Expand Down Expand Up @@ -4673,6 +4673,7 @@ public async Task<int> CheckRestrictedGear(IDictionary<int, int> dicRestrictedGe
/// <param name="cmsVehicleWeaponMount">ContextMenuStrip for Vehicle Weapon Mounts.</param>
/// <param name="cmsCyberware">ContextMenuStrip for Cyberware.</param>
/// <param name="cmsCyberwareGear">ContextMenuStrip for Gear in Cyberware.</param>
/// <param name="token">Cancellation token to listen to.</param>
public async Task<TreeNode> CreateTreeNode(ContextMenuStrip cmsVehicle, ContextMenuStrip cmsVehicleLocation, ContextMenuStrip cmsVehicleWeapon, ContextMenuStrip cmsWeaponAccessory, ContextMenuStrip cmsWeaponAccessoryGear, ContextMenuStrip cmsVehicleGear, ContextMenuStrip cmsVehicleWeaponMount, ContextMenuStrip cmsCyberware, ContextMenuStrip cmsCyberwareGear, CancellationToken token = default)
{
token.ThrowIfCancellationRequested();
Expand Down
1 change: 0 additions & 1 deletion Chummer/Backend/Equipment/VehicleMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
using System.Windows.Forms;
using System.Xml;
using System.Xml.XPath;
using Chummer.Backend.Attributes;
using NLog;

namespace Chummer.Backend.Equipment
Expand Down
3 changes: 2 additions & 1 deletion Chummer/Backend/Equipment/Weapon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace Chummer.Backend.Equipment
/// </summary>
[HubClassTag("SourceID", true, "Name", null)]
[DebuggerDisplay("{DisplayName(GlobalSettings.InvariantCultureInfo, GlobalSettings.DefaultLanguage)}")]
public sealed class Weapon : IHasChildren<Weapon>, IHasName, IHasSourceId, IHasInternalId, IHasXmlDataNode, IHasMatrixAttributes, IHasNotes, ICanSell, IHasCustomName, IHasLocation, ICanEquip, IHasSource, ICanSort, IHasWirelessBonus, IHasStolenProperty, ICanPaste, IHasRating, ICanBlackMarketDiscount, IDisposable, IAsyncDisposable, IHasCharacterObject
public sealed class Weapon : IHasChildren<Weapon>, IHasName, IHasSourceId, IHasInternalId, IHasXmlDataNode, IHasMatrixAttributes, IHasNotes, ICanSell, IHasCustomName, IHasLocation, ICanEquip, IHasSource, ICanSort, IHasWirelessBonus, IHasStolenProperty, ICanPaste, IHasRating, ICanBlackMarketDiscount, IDisposable, IAsyncDisposable
{
private static readonly Lazy<Logger> s_ObjLogger = new Lazy<Logger>(LogManager.GetCurrentClassLogger);
private static Logger Log => s_ObjLogger.Value;
Expand Down Expand Up @@ -8988,6 +8988,7 @@ public IEnumerable<Gear> GetAmmoReloadable(IEnumerable<Gear> lstGears)
/// <param name="cmsWeapon">ContextMenuStrip for the Weapon Node.</param>
/// <param name="cmsWeaponAccessory">ContextMenuStrip for Vehicle Accessory Nodes.</param>
/// <param name="cmsWeaponAccessoryGear">ContextMenuStrip for Vehicle Weapon Accessory Gear Nodes.</param>
/// <param name="token">Cancellation token to listen to.</param>
public async Task<TreeNode> CreateTreeNode(ContextMenuStrip cmsWeapon, ContextMenuStrip cmsWeaponAccessory, ContextMenuStrip cmsWeaponAccessoryGear, CancellationToken token = default)
{
token.ThrowIfCancellationRequested();
Expand Down
2 changes: 1 addition & 1 deletion Chummer/Backend/Equipment/WeaponMount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
using System.Windows.Forms;
using System.Xml;
using System.Xml.XPath;
using Chummer.Backend.Attributes;
using NLog;

namespace Chummer.Backend.Equipment
Expand Down Expand Up @@ -1820,6 +1819,7 @@ public async Task<int> CheckRestrictedGear(IDictionary<int, int> dicRestrictedGe
/// <param name="cmsCyberware">ContextMenuStrip for Cyberware.</param>
/// <param name="cmsCyberwareGear">ContextMenuStrip for Gear in Cyberware.</param>
/// <param name="cmsVehicleMod">ContextMenuStrip for Vehicle Mods.</param>
/// <param name="token">Cancellation token to listen to.</param>
public async Task<TreeNode> CreateTreeNode(ContextMenuStrip cmsVehicleWeaponMount, ContextMenuStrip cmsVehicleWeapon, ContextMenuStrip cmsVehicleWeaponAccessory, ContextMenuStrip cmsVehicleWeaponAccessoryGear, ContextMenuStrip cmsCyberware, ContextMenuStrip cmsCyberwareGear, ContextMenuStrip cmsVehicleMod, CancellationToken token = default)
{
token.ThrowIfCancellationRequested();
Expand Down
1 change: 0 additions & 1 deletion Chummer/Backend/Static/Managers/LanguageManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
using System.Windows.Forms;
using System.Xml;
using System.Xml.XPath;
using Microsoft.VisualStudio.Threading;

namespace Chummer
{
Expand Down
2 changes: 1 addition & 1 deletion Chummer/Forms/Character Forms/CharacterCareer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16137,7 +16137,7 @@ private async void treLifestyles_DoubleClick(object sender, EventArgs e)
int intMonths = await objLifestyle.GetIncrementsAsync(GenericToken).ConfigureAwait(false);
int intPosition = await CharacterObject.Lifestyles.IndexOfAsync(
await CharacterObject.Lifestyles.FirstOrDefaultAsync(p =>
p.InternalId == objLifestyle.InternalId, GenericToken).ConfigureAwait(false), GenericToken)
p.InternalId == strGuid, GenericToken).ConfigureAwait(false), GenericToken)
.ConfigureAwait(false);
string strOldLifestyleName
= await objLifestyle.GetCurrentDisplayNameAsync(GenericToken).ConfigureAwait(false);
Expand Down
1 change: 0 additions & 1 deletion Chummer/Forms/EditCharacterSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Globalization;
using System.IO;
Expand Down

0 comments on commit ad68d64

Please sign in to comment.