22 lines
550 B
C#
22 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();
|
||
|
}
|
||
|
}
|
||
|
}
|