using System.Windows;
using ytLive.Helpers;
using ytLive.ViewModels;

namespace ytLive;

public partial class GoLiveWindow : Window
{
    public GoLiveWindow(GoLiveViewModel viewModel)
    {
        AppLog.Write("GoLiveWindow ctor: before InitializeComponent");
        InitializeComponent();
        AppLog.Write("GoLiveWindow ctor: after InitializeComponent");
        DataContext = viewModel;
        viewModel.StartRequested += () => DialogResult = true;
        viewModel.CancelRequested += () => DialogResult = false;
    }
}
