using CommunityToolkit.Mvvm.Input;
using SpaceEngineersBlueprintEditor.Installer.Profiles;
using SpaceEngineersBlueprintEditor.Installer.ViewModel.Windows;
using SpaceEngineersBlueprintEditor.Installer.Views.Pages;
using System.Diagnostics;
using System.IO;
namespace SpaceEngineersBlueprintEditor.Installer.ViewModel.Pages;
public partial class InstallProgressPageViewModel(InstallProgressPage viewPage) : ViewModelBase
{
public InstallProgressPage ViewPage { get; set; } = viewPage;
[RelayCommand]
void ConfirmSuccess()
{
var startInfo = new ProcessStartInfo(Path.Combine(SystemProfile.InstallPath, "SpaceEngineersBlueprintEditor.exe"))
{
UseShellExecute = true,
WorkingDirectory = SystemProfile.InstallPath
};
Process.Start(startInfo);
MainWindowViewModel.CloseWindow();
}
}
using CommunityToolkit.Mvvm.Input;
using SpaceEngineersBlueprintEditor.Installer.Profiles;
using SpaceEngineersBlueprintEditor.Installer.ViewModel.Windows;
using SpaceEngineersBlueprintEditor.Installer.Views.Pages;
using System.Diagnostics;
using System.IO;
namespace SpaceEngineersBlueprintEditor.Installer.ViewModel.Pages;
public partial class InstallProgressPageViewModel(InstallProgressPage viewPage) : ViewModelBase
{
public InstallProgressPage ViewPage { get; set; } = viewPage;
[RelayCommand]
void ConfirmSuccess()
{
var startInfo = new ProcessStartInfo(Path.Combine(SystemProfile.InstallPath, "SpaceEngineersBlueprintEditor.exe"))
{
UseShellExecute = true,
WorkingDirectory = SystemProfile.InstallPath
};
Process.Start(startInfo);
MainWindowViewModel.CloseWindow();
}
}