() { creds.accessKey, creds.secretKey, creds.serviceURL, creds.bucketName, creds.bucketURL };
foreach (var (item, index) in Instances.Select((v, i) => (v, i)))
{
- PlaceholderAdorner adorner = Helpers.TextBoxHelper.GetPlaceholderAdorner(item);
+ PlaceholderAdorner adorner = GetPlaceholderAdorner(item);
+ if (Keys[index] == null)
+ return;
item.Text = (mode == ShowMode.Show) ? Keys[index] : new string('*', Keys[index].Length);
item.IsEnabled = (mode == ShowMode.Show) ? true : false;
if (Keys[index].Length > 0)
diff --git a/AMDiscordRPC/UIComponents/OptionsWindow.xaml b/AMDiscordRPC/UIComponents/OptionsWindow.xaml
new file mode 100644
index 0000000..8c4a0af
--- /dev/null
+++ b/AMDiscordRPC/UIComponents/OptionsWindow.xaml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/AMDiscordRPC/UIComponents/OptionsWindow.xaml.cs b/AMDiscordRPC/UIComponents/OptionsWindow.xaml.cs
new file mode 100644
index 0000000..eb3c5de
--- /dev/null
+++ b/AMDiscordRPC/UIComponents/OptionsWindow.xaml.cs
@@ -0,0 +1,36 @@
+
+using System;
+using System.Management.Instrumentation;
+using System.Text.RegularExpressions;
+using System.Windows;
+using System.Windows.Controls;
+using static AMDiscordRPC.Globals;
+
+namespace AMDiscordRPC.UIComponents
+{
+ ///
+ /// Interaction logic for OptionsWindow.xaml
+ ///
+ public partial class OptionsWindow : Window
+ {
+ private static OptionsWindow Instance;
+ public OptionsWindow()
+ {
+ InitializeComponent();
+ Instance = this;
+ Instance.Loaded += (s, e) =>
+ {
+ smallImage.SelectedIndex = (int)SelectedSmallImage;
+ };
+ }
+
+ private void SmallImage_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ SelectedSmallImage = (SmallImage)smallImage.SelectedIndex;
+ if (Database.ExecuteScalarCommand("SELECT smallImage FROM clientSettings") == null)
+ Database.ExecuteNonQueryCommand($"INSERT INTO clientSettings (smallImage) VALUES ({smallImage.SelectedIndex})");
+ else
+ Database.ExecuteNonQueryCommand($"UPDATE clientSettings SET (smallImage) = ({smallImage.SelectedIndex})");
+ }
+ }
+}
diff --git a/AMDiscordRPC/log4netconf.xml b/AMDiscordRPC/log4netconf.xml
index 30837d1..8f1ebc9 100644
--- a/AMDiscordRPC/log4netconf.xml
+++ b/AMDiscordRPC/log4netconf.xml
@@ -4,23 +4,8 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/AMDiscordRPC/packages.config b/AMDiscordRPC/packages.config
index 5d6c8c1..79da35e 100644
--- a/AMDiscordRPC/packages.config
+++ b/AMDiscordRPC/packages.config
@@ -11,6 +11,7 @@
+
diff --git a/README.md b/README.md
index 8e17c67..3b9cb6a 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,7 @@
AMDiscordRPC
An another Apple Music Discord RPC
+[Support Server](https://discord.gg/5trvjuqgm8)
## Usage
[Download](https://github.com/CrawLeyYou/AMDiscordRPC/releases/latest) latest release and make sure you have [.NET Framework 4.7.2](https://dotnet.microsoft.com/en-us/download/dotnet-framework/net472).