Skip to content

Commit 87c34e7

Browse files
committed
* Code refactoring
* Code improvements
1 parent 53b1d1c commit 87c34e7

File tree

9 files changed

+16
-15
lines changed

9 files changed

+16
-15
lines changed

MemPlus/Business/LOG/LogExporter.cs renamed to MemPlus/Business/EXPORT/LogExporter.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
using System;
22
using System.Collections.Generic;
33
using System.IO;
4+
using MemPlus.Business.LOG;
45

5-
namespace MemPlus.Business.LOG
6+
namespace MemPlus.Business.EXPORT
67
{
78
/// <summary>
89
/// Static class containing the logic for exporting logs

MemPlus/Business/PROCESS/ProcessDetailExporter.cs renamed to MemPlus/Business/EXPORT/ProcessDetailExporter.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
using System;
22
using System.Collections.Generic;
33
using System.IO;
4+
using MemPlus.Business.PROCESS;
45

5-
namespace MemPlus.Business.PROCESS
6+
namespace MemPlus.Business.EXPORT
67
{
78
/// <summary>
89
/// Static class that can be used to export ProcessDetail information

MemPlus/Business/RAM/RamSticksExporter.cs renamed to MemPlus/Business/EXPORT/RamSticksExporter.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
using System;
22
using System.Collections.Generic;
33
using System.IO;
4+
using MemPlus.Business.RAM;
45

5-
namespace MemPlus.Business.RAM
6+
namespace MemPlus.Business.EXPORT
67
{
78
/// <summary>
89
/// Static class that can be used to export RamStick information

MemPlus/Business/LOG/LogController.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@ public class LogController
4141
/// <summary>
4242
/// Method that will be called when a Log object was added
4343
/// </summary>
44-
internal LogAdded LogAddedEvent;
44+
internal event LogAdded LogAddedEvent;
4545
/// <summary>
4646
/// Method that will be called when a Log object was removed
4747
/// </summary>
48-
internal LogDeleted LogDeletedEvent;
48+
internal event LogDeleted LogDeletedEvent;
4949
/// <summary>
5050
/// Method that will be called when all Log objects were removed
5151
/// </summary>
52-
internal LogsCleared LogsClearedEvent;
52+
internal event LogsCleared LogsClearedEvent;
5353
/// <summary>
5454
/// Method that will be called when a list of Log objects with a specific LogType were removed
5555
/// </summary>
56-
internal LogTypeCleared LogTypeClearedEvent;
56+
internal event LogTypeCleared LogTypeClearedEvent;
5757
#endregion
5858

5959
/// <summary>

MemPlus/Business/UTILS/Utils.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Management;
55
using System.Security.Principal;
66
using System.Windows;
7+
using MemPlus.Business.EXPORT;
78
using MemPlus.Business.LOG;
89
using MemPlus.Business.PROCESS;
910
using MemPlus.Business.RAM;

MemPlus/MemPlus.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@
8989
<Compile Include="Business\EXPORT\ExportTypes.cs" />
9090
<Compile Include="Business\LOG\ProcessLog.cs" />
9191
<Compile Include="Business\PROCESS\ProcessDetail.cs" />
92-
<Compile Include="Business\PROCESS\ProcessDetailExporter.cs" />
92+
<Compile Include="Business\EXPORT\ProcessDetailExporter.cs" />
9393
<Compile Include="Business\RAM\RamData.cs" />
94-
<Compile Include="Business\RAM\RamSticksExporter.cs" />
94+
<Compile Include="Business\EXPORT\RamSticksExporter.cs" />
9595
<Compile Include="Business\RAM\RamStick.cs" />
9696
<Compile Include="Business\UTILS\NativeMethods.cs" />
9797
<Compile Include="Business\UTILS\Utils.cs" />
@@ -128,7 +128,7 @@
128128
<Compile Include="Business\LOG\ILogMethods.cs" />
129129
<Compile Include="Business\LOG\Log.cs" />
130130
<Compile Include="Business\LOG\LogController.cs" />
131-
<Compile Include="Business\LOG\LogExporter.cs" />
131+
<Compile Include="Business\EXPORT\LogExporter.cs" />
132132
<Compile Include="Business\LOG\RamLog.cs" />
133133
<Compile Include="Business\RAM\RamController.cs" />
134134
<Compile Include="Business\RAM\RamOptimizer.cs" />

MemPlus/Views/Windows/MainWindow.xaml.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.ComponentModel;
43
using System.Reflection;
54
using System.Windows;
@@ -8,7 +7,6 @@
87
using MemPlus.Business.EXPORT;
98
using MemPlus.Business.GUI;
109
using MemPlus.Business.LOG;
11-
using MemPlus.Business.PROCESS;
1210
using MemPlus.Business.RAM;
1311
using MemPlus.Business.UTILS;
1412
using Microsoft.Win32;

MemPlus/Views/Windows/ProcessAnalyzerWindow.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
WindowStartupLocation="CenterScreen"
1111
AllowsTransparency="True"
1212
TitleTextAlignment="Center"
13-
Title="MemPlus - Process Analyzer" Height="300" Width="450" Icon="/Resources/Images/ram.png">
13+
Title="MemPlus - Process Analyzer" Height="350" Width="500" Icon="/Resources/Images/ram.png">
1414
<Grid>
1515
<Grid.RowDefinitions>
1616
<RowDefinition />
@@ -24,7 +24,7 @@
2424
<Image Width="16" Height="16" Source="/MemPlus;component/Resources/Images/log.png" />
2525
</MenuItem.Icon>
2626
</MenuItem>
27-
<Separator></Separator>
27+
<Separator />
2828
<MenuItem Header="Clear" Click="BtnClear_OnClick">
2929
<MenuItem.Icon>
3030
<Image Width="16" Height="16" Source="/MemPlus;component/Resources/Images/exit.png" />

MemPlus/Views/Windows/RamAnalyzerWindow.xaml.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
using MemPlus.Business.LOG;
88
using MemPlus.Business.RAM;
99
using MemPlus.Business.UTILS;
10-
using Microsoft.Win32;
1110

1211
namespace MemPlus.Views.Windows
1312
{

0 commit comments

Comments
 (0)