From 4e5502977d2e9613549f071f18489155909454cb Mon Sep 17 00:00:00 2001
From: Stone-Red-Code <56473591+Stone-Red-Code@users.noreply.github.com>
Date: Mon, 27 Sep 2021 16:14:50 +0200
Subject: [PATCH] - Fix some spelling mistakes
---
src/DesktopMagic/MainWindow.xaml | 6 ++--
src/DesktopMagic/MainWindow.xaml.cs | 36 +++++++++----------
.../Resources/StringResources.de.xaml | 4 +--
.../Resources/StringResources.en.xaml | 4 +--
.../DesktopMagicPluginAPI.md | 6 ++--
.../DesktopMagicPluginAPI.xml | 2 +-
src/DesktopMagicPluginAPI/Plugin.cs | 4 +--
7 files changed, 31 insertions(+), 31 deletions(-)
diff --git a/src/DesktopMagic/MainWindow.xaml b/src/DesktopMagic/MainWindow.xaml
index c73257b..7098b94 100644
--- a/src/DesktopMagic/MainWindow.xaml
+++ b/src/DesktopMagic/MainWindow.xaml
@@ -57,9 +57,9 @@
-
-
-
+
+
+
diff --git a/src/DesktopMagic/MainWindow.xaml.cs b/src/DesktopMagic/MainWindow.xaml.cs
index ab0c97f..f758d79 100644
--- a/src/DesktopMagic/MainWindow.xaml.cs
+++ b/src/DesktopMagic/MainWindow.xaml.cs
@@ -268,7 +268,7 @@ namespace DesktopMagic
window.ShowInTaskbar = false;
window.Show();
- window.ContentRendered += PluginWindow_ContentRendered;
+ window.ContentRendered += DisplayWindow_ContentRendered;
window.Closing += DisplayWindow_Closing;
Windows.Add(window);
WindowNames.Add(window.Title);
@@ -289,7 +289,7 @@ namespace DesktopMagic
SaveLayout();
}
- private void PluginWindow_ContentRendered(object sender, EventArgs e)
+ private void DisplayWindow_ContentRendered(object sender, EventArgs e)
{
WindowPos.SendWpfWindowBack(sender as Window);
WindowPos.SendWpfWindowBack(sender as Window);
@@ -345,17 +345,17 @@ namespace DesktopMagic
SaveLayout();
}
- private void MirrorPlugineCheckBox_Click(object sender, RoutedEventArgs e)
+ private void MirrorModeCheckBox_Click(object sender, RoutedEventArgs e)
{
- MirrorMode = (bool)mirrorPlugineCheckBox.IsChecked;
- key.SetValue("MirrorPlugine", mirrorPlugineCheckBox.IsChecked.ToString());
+ MirrorMode = (bool)mirrorModeCheckBox.IsChecked;
+ key.SetValue("MirrorMode", mirrorModeCheckBox.IsChecked.ToString());
SaveLayout();
}
- private void LinePlugineCheckBox_Click(object sender, RoutedEventArgs e)
+ private void LineModeCheckBox_Click(object sender, RoutedEventArgs e)
{
- LineMode = (bool)linePlugineCheckBox.IsChecked;
- key.SetValue("LinePlugine", linePlugineCheckBox.IsChecked.ToString());
+ LineMode = (bool)lineModeCheckBox.IsChecked;
+ key.SetValue("LineMode", lineModeCheckBox.IsChecked.ToString());
SaveLayout();
}
@@ -422,12 +422,12 @@ namespace DesktopMagic
SaveLayout();
}
- private void SpectrumPlugineComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ private void SpectrumModeComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
- SpectrumMode = spectrumPlugineComboBox.SelectedIndex;
- key.SetValue("SpectrumPlugine", spectrumPlugineComboBox.SelectedIndex);
+ SpectrumMode = spectrumModeComboBox.SelectedIndex;
+ key.SetValue("SpectrumMode", spectrumModeComboBox.SelectedIndex);
- mirrorPlugineCheckBox.IsEnabled = spectrumPlugineComboBox.SelectedIndex != 1;
+ mirrorModeCheckBox.IsEnabled = spectrumModeComboBox.SelectedIndex != 1;
SaveLayout();
}
@@ -866,18 +866,18 @@ namespace DesktopMagic
private void LoadLayout(bool minimize = true)
{
GlobalFont = key.GetValue("Font", "Segoe UI").ToString();
- spectrumPlugineComboBox.SelectedIndex = int.Parse(key.GetValue("SpectrumPlugine", "0").ToString());
+ spectrumModeComboBox.SelectedIndex = int.Parse(key.GetValue("SpectrumMode", "0").ToString());
amplifierLevelSlider.Value = int.Parse(key.GetValue("AmplifierLevel", "0").ToString());
- mirrorPlugineCheckBox.IsChecked = bool.Parse(key.GetValue("MirrorPlugine", "false").ToString());
- linePlugineCheckBox.IsChecked = bool.Parse(key.GetValue("LinePlugine", "false").ToString());
+ mirrorModeCheckBox.IsChecked = bool.Parse(key.GetValue("MirrorMode", "false").ToString());
+ lineModeCheckBox.IsChecked = bool.Parse(key.GetValue("LineMode", "false").ToString());
musicVisualizerColorTextBox.Text = key.GetValue("MusicVisualizerColor", "").ToString();
colorHexTextBox.Text = key.GetValue("Color", "#FFFFFF").ToString();
blockWindowsClosing = false;
MusicVisualizerColorTextBox_TextChanged(null, null);
- MirrorPlugineCheckBox_Click(null, null);
- LinePlugineCheckBox_Click(null, null);
- SpectrumPlugineComboBox_SelectionChanged(null, null);
+ MirrorModeCheckBox_Click(null, null);
+ LineModeCheckBox_Click(null, null);
+ SpectrumModeComboBox_SelectionChanged(null, null);
AmplifierLevelSlider_ValueChanged(null, null);
foreach (Window window in Windows)
diff --git a/src/DesktopMagic/Resources/StringResources.de.xaml b/src/DesktopMagic/Resources/StringResources.de.xaml
index 97c3d66..4d38a99 100644
--- a/src/DesktopMagic/Resources/StringResources.de.xaml
+++ b/src/DesktopMagic/Resources/StringResources.de.xaml
@@ -3,8 +3,8 @@
xmlns:col="clr-namespace:System.Collections;assembly=mscorlib"
xmlns:system="clr-namespace:System;assembly=mscorlib">
- Linie
- Spiegeln
+ Linie
+ Spiegeln
Plugins Neu Laden
Plugins Ordner Öffnen
Plugins Herunterladen
diff --git a/src/DesktopMagic/Resources/StringResources.en.xaml b/src/DesktopMagic/Resources/StringResources.en.xaml
index 8220783..8935929 100644
--- a/src/DesktopMagic/Resources/StringResources.en.xaml
+++ b/src/DesktopMagic/Resources/StringResources.en.xaml
@@ -3,8 +3,8 @@
xmlns:col="clr-namespace:System.Collections;assembly=mscorlib"
xmlns:system="clr-namespace:System;assembly=mscorlib">
- Line
- Mirror
+ Line
+ Mirror
Reload Plugins
Open Plugins Folder
Download Plugins
diff --git a/src/DesktopMagicPluginAPI/DesktopMagicPluginAPI.md b/src/DesktopMagicPluginAPI/DesktopMagicPluginAPI.md
index 7acedab..18e28ce 100644
--- a/src/DesktopMagicPluginAPI/DesktopMagicPluginAPI.md
+++ b/src/DesktopMagicPluginAPI/DesktopMagicPluginAPI.md
@@ -51,7 +51,7 @@
- [Main()](#M-DesktopMagicPluginAPI-Plugin-Main 'DesktopMagicPluginAPI.Plugin.Main')
- [OnMouseClick(position,mouseButton)](#M-DesktopMagicPluginAPI-Plugin-OnMouseClick-System-Drawing-Point,DesktopMagicPluginAPI-Inputs-MouseButton- 'DesktopMagicPluginAPI.Plugin.OnMouseClick(System.Drawing.Point,DesktopMagicPluginAPI.Inputs.MouseButton)')
- [OnMouseMove(position)](#M-DesktopMagicPluginAPI-Plugin-OnMouseMove-System-Drawing-Point- 'DesktopMagicPluginAPI.Plugin.OnMouseMove(System.Drawing.Point)')
- - [OnMouseWheel(position,Delta)](#M-DesktopMagicPluginAPI-Plugin-OnMouseWheel-System-Drawing-Point,System-Int32- 'DesktopMagicPluginAPI.Plugin.OnMouseWheel(System.Drawing.Point,System.Int32)')
+ - [OnMouseWheel(position,delta)](#M-DesktopMagicPluginAPI-Plugin-OnMouseWheel-System-Drawing-Point,System-Int32- 'DesktopMagicPluginAPI.Plugin.OnMouseWheel(System.Drawing.Point,System.Int32)')
- [Start()](#M-DesktopMagicPluginAPI-Plugin-Start 'DesktopMagicPluginAPI.Plugin.Start')
- [RenderQuality](#T-DesktopMagicPluginAPI-Drawing-RenderQuality 'DesktopMagicPluginAPI.Drawing.RenderQuality')
- [High](#F-DesktopMagicPluginAPI-Drawing-RenderQuality-High 'DesktopMagicPluginAPI.Drawing.RenderQuality.High')
@@ -570,7 +570,7 @@ Occurs when the mouse pointer is moved over the control.
| position | [System.Drawing.Point](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Point 'System.Drawing.Point') | The x- and y-coordinates of the mouse pointer position relative to the plugin window. |
-### OnMouseWheel(position,Delta) `method`
+### OnMouseWheel(position,delta) `method`
##### Summary
@@ -581,7 +581,7 @@ Occurs when the user rotates the mouse wheel while the mouse pointer is over thi
| Name | Type | Description |
| ---- | ---- | ----------- |
| position | [System.Drawing.Point](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Point 'System.Drawing.Point') | The x- and y-coordinates of the mouse pointer position relative to the plugin window. |
-| Delta | [System.Int32](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Int32 'System.Int32') | A value that indicates the amount that the mouse wheel has changed. |
+| delta | [System.Int32](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Int32 'System.Int32') | A value that indicates the amount that the mouse wheel has changed. |
### Start() `method`
diff --git a/src/DesktopMagicPluginAPI/DesktopMagicPluginAPI.xml b/src/DesktopMagicPluginAPI/DesktopMagicPluginAPI.xml
index 2974b49..40dd348 100644
--- a/src/DesktopMagicPluginAPI/DesktopMagicPluginAPI.xml
+++ b/src/DesktopMagicPluginAPI/DesktopMagicPluginAPI.xml
@@ -365,7 +365,7 @@
Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.
The x- and y-coordinates of the mouse pointer position relative to the plugin window.
- A value that indicates the amount that the mouse wheel has changed.
+ A value that indicates the amount that the mouse wheel has changed.
diff --git a/src/DesktopMagicPluginAPI/Plugin.cs b/src/DesktopMagicPluginAPI/Plugin.cs
index 46351a2..d34ceaa 100644
--- a/src/DesktopMagicPluginAPI/Plugin.cs
+++ b/src/DesktopMagicPluginAPI/Plugin.cs
@@ -76,8 +76,8 @@ namespace DesktopMagicPluginAPI
/// Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.
///
/// The x- and y-coordinates of the mouse pointer position relative to the plugin window.
- /// A value that indicates the amount that the mouse wheel has changed.
- public virtual void OnMouseWheel(Point position, int Delta)
+ /// A value that indicates the amount that the mouse wheel has changed.
+ public virtual void OnMouseWheel(Point position, int delta)
{
}
}