newentry buttons ergänzt und jetzt teilweise funktionsfähig, bis auf passwort generieren und speicehrn

This commit is contained in:
Taarly 2025-06-23 15:56:05 +02:00
parent f112e7538f
commit 3e1c47bc9e
2 changed files with 32 additions and 6 deletions

View File

@ -26,16 +26,20 @@
Text="Password:" /> Text="Password:" />
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
<TextBox TextWrapping="Wrap" Watermark="Password" /> <TextBox
Name="NewentryPW"
PasswordChar="*"
Watermark="Password" />
<Button <Button
BorderBrush="Black" BorderBrush="Black"
BorderThickness="1" BorderThickness="1"
Content="X" Content="Generate Secure Password (WIP)"
Name="newentry_generate_password" /> Name="newentry_generate_password" />
<Button <Button
BorderBrush="Black" BorderBrush="Black"
BorderThickness="1" BorderThickness="1"
Content="X" Click="NewEntry_ShowPW_Click"
Content="👁"
Name="newentry_show_password" /> Name="newentry_show_password" />
</StackPanel> </StackPanel>
<TextBlock <TextBlock
@ -47,13 +51,15 @@
<Button <Button
BorderBrush="Black" BorderBrush="Black"
BorderThickness="1" BorderThickness="1"
Click="NewEntry_Cancel_Click"
Content="X" Content="X"
Name="newentry_save_button" /> Name="newentry_cancel_button" />
<Button <Button
BorderBrush="Black" BorderBrush="Black"
BorderThickness="1" BorderThickness="1"
Content="X" Click="NewEntry_Save_Click"
Name="newentry_cancel_button" /> Content="✓"
Name="newentry_save_button" />
</StackPanel> </StackPanel>
</StackPanel> </StackPanel>
</Border> </Border>

View File

@ -18,5 +18,25 @@ public partial class NewEntry : Window
InitializeComponent(); InitializeComponent();
_controller = controller; _controller = controller;
} }
private void NewEntry_Cancel_Click(object? sender, RoutedEventArgs e)
{
Close();
}
private void NewEntry_Save_Click(object? sender, RoutedEventArgs e)
{
} }
private void NewEntry_ShowPW_Click(object? sender, RoutedEventArgs e)
{
if (NewentryPW.PasswordChar == '*')
{
NewentryPW.PasswordChar = '\0';
}
else
{
NewentryPW.PasswordChar = '*';
}
}
}