mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 19:55:00 +00:00
26 lines
618 B
C#
26 lines
618 B
C#
using System;
|
|
using Avalonia.Interactivity;
|
|
|
|
namespace SourceGit.Views
|
|
{
|
|
public partial class Askpass : ChromelessWindow
|
|
{
|
|
public Askpass()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void CloseWindow(object _1, RoutedEventArgs _2)
|
|
{
|
|
Console.Out.WriteLine("No passphrase entered.");
|
|
App.Quit(-1);
|
|
}
|
|
|
|
private void EnterPassword(object _1, RoutedEventArgs _2)
|
|
{
|
|
var passphrase = TxtPassphrase.Text ?? string.Empty;
|
|
Console.Out.Write($"{passphrase}\n");
|
|
App.Quit(0);
|
|
}
|
|
}
|
|
}
|