diff --git a/SquadForger/App.config b/SquadForger/App.config index 45dbf1a..aa001be 100644 --- a/SquadForger/App.config +++ b/SquadForger/App.config @@ -3,9 +3,10 @@ - - + + + diff --git a/SquadForger/Components/BindabalePasswordBox.xaml b/SquadForger/Components/BindabalePasswordBox.xaml new file mode 100644 index 0000000..b970269 --- /dev/null +++ b/SquadForger/Components/BindabalePasswordBox.xaml @@ -0,0 +1,10 @@ + + + diff --git a/SquadForger/Components/BindabalePasswordBox.xaml.cs b/SquadForger/Components/BindabalePasswordBox.xaml.cs new file mode 100644 index 0000000..9564aa2 --- /dev/null +++ b/SquadForger/Components/BindabalePasswordBox.xaml.cs @@ -0,0 +1,27 @@ +using System.Windows; +using System.Windows.Controls; + +namespace SquadForger.Components +{ + public partial class BindabalePasswordBox : UserControl + { + public static readonly DependencyProperty PasswordProperty = DependencyProperty.Register( + "Password", typeof(string), typeof(BindabalePasswordBox), new PropertyMetadata("Discord Webhook ID")); + + public string Password + { + get { return (string)GetValue(PasswordProperty); } + set { SetValue(PasswordProperty, value); } + } + + public BindabalePasswordBox() + { + InitializeComponent(); + } + + private void PasswordBox_OnPasswordChanged(object sender, RoutedEventArgs e) + { + Password=passwordBox.Password; + } + } +} \ No newline at end of file diff --git a/SquadForger/SquadForger.csproj b/SquadForger/SquadForger.csproj index f55dbcb..94e1aed 100644 --- a/SquadForger/SquadForger.csproj +++ b/SquadForger/SquadForger.csproj @@ -242,6 +242,9 @@ MSBuild:Compile Designer + + BindabalePasswordBox.xaml + @@ -262,6 +265,7 @@ SquadView.xaml + MSBuild:Compile Designer @@ -301,9 +305,7 @@ Resources.Designer.cs - - Always - + SettingsSingleFileGenerator Settings.Designer.cs diff --git a/SquadForger/View/DiscordView.xaml b/SquadForger/View/DiscordView.xaml index d0fc61d..cd63069 100644 --- a/SquadForger/View/DiscordView.xaml +++ b/SquadForger/View/DiscordView.xaml @@ -4,6 +4,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:SquadForger.View" + xmlns:components = "clr-namespace:SquadForger.Components" xmlns:vm="clr-namespace:SquadForger.ViewModel" mc:Ignorable="d" Background="Transparent" @@ -73,6 +74,7 @@ + @@ -93,13 +95,26 @@ Margin="0,0,10,0" Background="#e3c57e" Foreground="black"/> -