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); } }