CollabVMDesktopClient/CollabVMClient/Views/MainWindow.axaml.cs
2023-08-29 08:52:35 -04:00

27 lines
615 B
C#

using Avalonia.Controls;
using System.IO;
using System.Text.Json;
namespace CollabVMClient.Views;
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
directConnect.Click += DirectConnect_Click;
exit.Click += Exit_Click;
addServer.CommandParameter = this;
}
private void Exit_Click(object? sender, Avalonia.Interactivity.RoutedEventArgs e)
{
Close();
}
private void DirectConnect_Click(object? sender, Avalonia.Interactivity.RoutedEventArgs e)
{
new DirectConnect().ShowDialog(this);
}
}