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

21 lines
550 B
C#

using Avalonia.Controls;
using CollabVMClient.ViewModels;
namespace CollabVMClient.Views
{
public partial class CVMNode : UserControl
{
CVMNodeViewModel VM => ((CVMNodeViewModel)DataContext);
public CVMNode()
{
InitializeComponent();
ConnectButton.Click += ConnectButton_Click;
}
private void ConnectButton_Click(object? sender, Avalonia.Interactivity.RoutedEventArgs e)
{
var v = new CollabVMViewer(VM.URL, VM.ID);
v.Open();
}
}
}