Skip to content

Commit bac9aba

Browse files
committed
* Added more logging
* Minor fixes
1 parent 3cabd2a commit bac9aba

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

MemPlus/Windows/AboutWindow.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ public AboutWindow(LogController logController)
3535
/// </summary>
3636
private void LoadProperties()
3737
{
38+
_logController.AddLog(new ApplicationLog("Loading AboutWindow properties"));
3839
Topmost = Properties.Settings.Default.Topmost;
40+
_logController.AddLog(new ApplicationLog("Done loading AboutWindow properties"));
3941
}
4042

4143
/// <summary>

MemPlus/Windows/LogWindow.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ public LogWindow(LogController logController, LogType logType)
4545

4646
private void LoadProperties()
4747
{
48+
_logController.AddLog(new ApplicationLog("Loading LogWindow properties"));
4849
Topmost = Properties.Settings.Default.Topmost;
50+
_logController.AddLog(new ApplicationLog("Done loading LogWindow properties"));
4951
}
5052

5153
private void LogTypeClearedEvent(List<Log> clearedList)

MemPlus/Windows/MainWindow.xaml.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ public MainWindow()
3939

4040
internal void LoadProperties()
4141
{
42-
_logController.AddLog(new ApplicationLog("Loading properties"));
42+
_logController.AddLog(new ApplicationLog("Loading MainWindow properties"));
43+
4344
MniDisableInactive.IsChecked = Properties.Settings.Default.DisableOnInactive;
4445
MniOnTop.IsChecked = Properties.Settings.Default.Topmost;
4546
MniRamMonitor.IsChecked = Properties.Settings.Default.RamMonitor;
@@ -55,7 +56,7 @@ internal void LoadProperties()
5556
_rmEnabledBeforeInvisible = false;
5657
}
5758

58-
_logController.AddLog(new ApplicationLog("Done loading properties"));
59+
_logController.AddLog(new ApplicationLog("Done loading MainWindow properties"));
5960
}
6061

6162
private void Active(object sender, EventArgs args)

MemPlus/Windows/SettingsWindow.xaml.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private void ChangeVisualStyle()
4141

4242
private void LoadProperties()
4343
{
44-
_logController.AddLog(new ApplicationLog("Loading properties"));
44+
_logController.AddLog(new ApplicationLog("Loading SettingsWindow properties"));
4545

4646
//TODO
4747
//General
@@ -60,7 +60,7 @@ private void LoadProperties()
6060
ChbDisableInactive.IsChecked = Properties.Settings.Default.DisableOnInactive;
6161
ItbRamMonitorTimeout.Value = Properties.Settings.Default.RamMonitorInterval;
6262

63-
_logController.AddLog(new ApplicationLog("Properties have been loaded"));
63+
_logController.AddLog(new ApplicationLog("Done loading SettingsWindow properties"));
6464
}
6565

6666
private void SaveProperties()
@@ -82,7 +82,7 @@ private void SaveProperties()
8282

8383
_logController.AddLog(new ApplicationLog("Properties have been saved"));
8484

85-
MessageBox.Show("All properties have been saved!", "MemPlus", MessageBoxButton.OK, MessageBoxImage.Information);
85+
MessageBox.Show("All settings have been saved!", "MemPlus", MessageBoxButton.OK, MessageBoxImage.Information);
8686
}
8787

8888
private void ResetSettings()
@@ -96,9 +96,9 @@ private void ResetSettings()
9696
_mainWindow.LoadProperties();
9797
LoadProperties();
9898

99-
MessageBox.Show("All settings have been reset!", "MemPlus", MessageBoxButton.OK, MessageBoxImage.Information);
100-
10199
_logController.AddLog(new ApplicationLog("Properties have been reset"));
100+
101+
MessageBox.Show("All settings have been reset!", "MemPlus", MessageBoxButton.OK, MessageBoxImage.Information);
102102
}
103103

104104
private void BtnReset_OnClick(object sender, RoutedEventArgs e)

0 commit comments

Comments
 (0)