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

View File

@ -18,5 +18,25 @@ public partial class NewEntry : Window
InitializeComponent();
_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 = '*';
}
}
}