Skip to content

Commit b8d6368

Browse files
committed
* Added more GUI control functions
* Minor design changes
1 parent 3a84b59 commit b8d6368

File tree

4 files changed

+43
-6
lines changed

4 files changed

+43
-6
lines changed

MemPlus/Windows/LogWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<RowDefinition></RowDefinition>
1616
<RowDefinition Height="Auto"></RowDefinition>
1717
</Grid.RowDefinitions>
18-
<ListView x:Name="LsvLogs" ScrollBar.Scroll="LsvLogs_OnScroll">
18+
<ListView x:Name="LsvLogs" ScrollBar.Scroll="LsvLogs_OnScroll" SelectionMode="Single">
1919
<ListView.ContextMenu>
2020
<ContextMenu>
2121
<MenuItem Header="Delete" Click="DeleteMenuItem_OnClick">

MemPlus/Windows/MainWindow.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
</MenuItem>
103103

104104
<MenuItem Header="_Help">
105-
<MenuItem Header="Help">
105+
<MenuItem Header="Help" Click="HelpMenuItem_OnClick">
106106
<MenuItem.Icon>
107107
<Image Width="16" Height="16" Source="/Resources/Images/help.png"/>
108108
</MenuItem.Icon>
@@ -119,7 +119,7 @@
119119
<Image Width="16" Height="16" Source="/Resources/Images/home.png"/>
120120
</MenuItem.Icon>
121121
</MenuItem>
122-
<MenuItem Header="License">
122+
<MenuItem Header="License" Click="LicenseMenuItem_OnClick">
123123
<MenuItem.Icon>
124124
<Image Width="16" Height="16" Source="/Resources/Images/pdf.png"/>
125125
</MenuItem.Icon>

MemPlus/Windows/MainWindow.xaml.cs

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ private void Passive(object sender, EventArgs args)
7373
_ramController.DisableMonitor();
7474
Overlay.Visibility = Visibility.Visible;
7575
}
76-
7776

7877
internal void ChangeVisualStyle()
7978
{
@@ -279,5 +278,43 @@ private void RamMonitorMenuItem_OnCheckedChanged(object sender, RoutedEventArgs
279278

280279
Properties.Settings.Default.Save();
281280
}
281+
282+
/// <summary>
283+
/// Open the file containing the license for MemPlus
284+
/// </summary>
285+
/// <param name="sender">The object that has initialized the method</param>
286+
/// <param name="e">The routed event arguments</param>
287+
private void LicenseMenuItem_OnClick(object sender, RoutedEventArgs e)
288+
{
289+
try
290+
{
291+
_logController.AddLog(new ApplicationLog("Opening MemPlus license file"));
292+
System.Diagnostics.Process.Start(AppDomain.CurrentDomain.BaseDirectory + "\\gpl.pdf");
293+
}
294+
catch (Exception ex)
295+
{
296+
_logController.AddLog(new ApplicationLog(ex.Message));
297+
MessageBox.Show(ex.Message, "MemPlus", MessageBoxButton.OK, MessageBoxImage.Error);
298+
}
299+
}
300+
301+
/// <summary>
302+
/// Open the file containing the help documentation for MemPlus
303+
/// </summary>
304+
/// <param name="sender">The object that has initialized the method</param>
305+
/// <param name="e">The routed event arguments</param>
306+
private void HelpMenuItem_OnClick(object sender, RoutedEventArgs e)
307+
{
308+
try
309+
{
310+
_logController.AddLog(new ApplicationLog("Opening MemPlus help file"));
311+
System.Diagnostics.Process.Start(AppDomain.CurrentDomain.BaseDirectory + "\\help.pdf");
312+
}
313+
catch (Exception ex)
314+
{
315+
_logController.AddLog(new ApplicationLog(ex.Message));
316+
MessageBox.Show(ex.Message, "MemPlus", MessageBoxButton.OK, MessageBoxImage.Error);
317+
}
318+
}
282319
}
283320
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
![MemPlus](https://i.imgur.com/WG2oNG9.gif)
44

5-
This project was created to mock all paid memory optimizers. MemPlus is an entirely free, completely functional 'memory optimizer' that will 'safely' free up non-essential memory in Windows.
5+
MemPlus is an entirely free, completely functional 'memory optimizer' that will 'safely' free up non-essential memory in Windows.
66

77
# Requirements in order to build
88
* [Visual Studio](https://vistualstudio.com)
@@ -12,7 +12,7 @@ This project was created to mock all paid memory optimizers. MemPlus is an entir
1212
* [Hardcodet.NotifyIcon.Wpf](https://www.nuget.org/packages/Hardcodet.NotifyIcon.Wpf/)
1313

1414
# Anything else?
15-
Yes. Don't fall for these memory optimizers that will speed up your system by 100000% percent scams. This will actually free up your memory, but it will cost you dearly in performance and might cause system instability. Do not use these tools on any essential devices. And we, CodeDead, are not responsible for any damages that this type of software can cause to your system.
15+
Don't fall for these memory optimizers that will speed up your system by 100000% percent scams. This will actually free up your memory, but it might cost you dearly in performance and might cause system instability. Do not use these tools on any essential devices. And we, CodeDead, are not responsible for any damages that this type of software can cause to your system.
1616

1717
# License
1818
[GPLv3](https://www.gnu.org/licenses/gpl-3.0.en.html)

0 commit comments

Comments
 (0)