Skip to content

Commit 650f7a1

Browse files
committed
code clean
1 parent 086750e commit 650f7a1

7 files changed

Lines changed: 19 additions & 38 deletions

File tree

Aga.Controls/Tree/TreeViewAdv.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -796,25 +796,26 @@ internal void SetIsExpanded(TreeNodeAdv node, bool value, bool ignoreChildren, b
796796
eargs.Node = node;
797797
eargs.Value = value;
798798
eargs.IgnoreChildren = ignoreChildren;
799+
eargs.ChangedByUser = byUser;
799800

800801
if (AsyncExpanding && LoadOnDemand && !_threadPool.IsMyThread(Thread.CurrentThread))
801802
{
802-
WaitCallback wc = delegate(object argument) { SetIsExpanded((ExpandArgs)argument, byUser); };
803+
WaitCallback wc = delegate(object argument) { SetIsExpanded((ExpandArgs)argument); };
803804
_threadPool.QueueUserWorkItem(wc, eargs);
804805
}
805806
else
806-
SetIsExpanded(eargs, byUser);
807+
SetIsExpanded(eargs);
807808
}
808809

809-
private void SetIsExpanded(ExpandArgs eargs, bool byUser)
810+
private void SetIsExpanded(ExpandArgs eargs)
810811
{
811812
bool update = !eargs.IgnoreChildren && !AsyncExpanding;
812813
if (update)
813814
BeginUpdate();
814815
try
815816
{
816817
if (IsMyNode(eargs.Node) && eargs.Node.IsExpanded != eargs.Value)
817-
SetIsExpanded(eargs.Node, eargs.Value, byUser);
818+
SetIsExpanded(eargs.Node, eargs.Value, eargs.ChangedByUser);
818819

819820
if (!eargs.IgnoreChildren)
820821
SetIsExpandedRecursive(eargs.Node, eargs.Value);

HidSharp/HidSharp.NETStandard.csproj

Lines changed: 0 additions & 12 deletions
This file was deleted.

HidSharp/HidSharp.csproj

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
23
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
4-
<OutputType>Library</OutputType>
4+
<TargetFramework>net472</TargetFramework>
5+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
56
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
6-
<OutputPath>..\bin\</OutputPath>
7-
<Company>Illusory Studios LLC</Company>
8-
<Copyright>Copyright © 2010-2019 James F. Bellinger &lt;http://www.zer7.com/software/hidsharp&gt;</Copyright>
9-
<Description>C# HID wrappers</Description>
10-
<Product>HidSharp</Product>
11-
<AssemblyTitle>HidSharp</AssemblyTitle>
12-
<AssemblyVersion>2.1.0.0</AssemblyVersion>
13-
<FileVersion>2.1.0.0</FileVersion>
14-
<InformationalVersion>2.1.0</InformationalVersion>
15-
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
7+
<AssemblyName>HidSharp</AssemblyName>
8+
<RootNamespace>HidSharp</RootNamespace>
9+
<OutputPath>..\bin</OutputPath>
1610
</PropertyGroup>
17-
</Project>
11+
12+
</Project>

HidSharp/Platform/Libusb/NativeMethods.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,6 @@ public enum TransferType : byte
8888
Interrupt
8989
}
9090

91-
public struct Version
92-
{
93-
public ushort Major, Minor, Micro, Nano;
94-
}
95-
9691
public enum Error
9792
{
9893
None = 0,

OpenHardwareMonitor.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1717
.editorconfig = .editorconfig
1818
EndProjectSection
1919
EndProject
20-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HidSharp.NETStandard", "HidSharp\HidSharp.NETStandard.csproj", "{9CE1E1E2-8F82-4170-92B2-0F7F8A66F4E8}"
20+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HidSharp", "HidSharp\HidSharp.csproj", "{9CE1E1E2-8F82-4170-92B2-0F7F8A66F4E8}"
2121
EndProject
2222
Global
2323
GlobalSection(SolutionConfigurationPlatforms) = preSolution

OpenHardwareMonitor/UI/MainForm.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ public sealed partial class MainForm : Form
4646
private readonly UnitManager _unitManager;
4747
private readonly UpdateVisitor _updateVisitor = new();
4848
private readonly WmiProvider _wmiProvider;
49+
#if DEBUG
4950
private readonly Timer _checkUpdatesTimer;
51+
#endif
5052

5153
private int _delayCount;
5254
private bool _selectionDragging;

OpenHardwareMonitorLib/OpenHardwareMonitorLib.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net472</TargetFrameworks>
3+
<TargetFramework>net472</TargetFramework>
44
<AssemblyName>OpenHardwareMonitorLib</AssemblyName>
55
<RootNamespace>OpenHardwareMonitor</RootNamespace>
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
@@ -38,7 +38,7 @@
3838
</None>
3939
</ItemGroup>
4040
<ItemGroup>
41-
<ProjectReference Include="..\HidSharp\HidSharp.NETStandard.csproj" />
41+
<ProjectReference Include="..\HidSharp\HidSharp.csproj" />
4242
</ItemGroup>
4343
<ItemGroup>
4444
<Reference Include="System.Management" />

0 commit comments

Comments
 (0)