mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-22 10:31:26 -07:00
34 lines
905 B
C#
34 lines
905 B
C#
using System.Windows;
|
|
using Bloxstrap.UI.ViewModels.Installer;
|
|
|
|
namespace Bloxstrap.UI.Elements.Installer.Pages
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for WelcomePage.xaml
|
|
/// </summary>
|
|
public partial class WelcomePage
|
|
{
|
|
private readonly WelcomeViewModel _viewModel = new();
|
|
|
|
public WelcomePage()
|
|
{
|
|
_viewModel.CanContinueEvent += (_, _) =>
|
|
{
|
|
if (Window.GetWindow(this) is MainWindow window)
|
|
window.SetButtonEnabled("next", true);
|
|
};
|
|
|
|
DataContext = _viewModel;
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void UiPage_Loaded(object sender, RoutedEventArgs e)
|
|
{
|
|
if (Window.GetWindow(this) is MainWindow window)
|
|
window.SetNextButtonText(Strings.Common_Navigation_Next);
|
|
|
|
_viewModel.DoChecks();
|
|
}
|
|
}
|
|
}
|