Project_Keywi/Project.View/NewEntry/NewEntry.axaml.cs

42 lines
869 B
C#

using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Media;
using Project.Controller;
namespace Project.View;
public partial class NewEntry : Window
{
readonly AppController? _controller;
public NewEntry()
{
InitializeComponent();
}
public NewEntry(AppController controller)
{
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 = '*';
}
}
}