You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.3 KiB
50 lines
1.3 KiB
1 year ago
|
using System.Threading.Tasks;
|
||
|
using Microsoft.Extensions.Logging;
|
||
|
using StabilityMatrix.Avalonia.Services;
|
||
|
using StabilityMatrix.Avalonia.ViewModels;
|
||
|
using StabilityMatrix.Core.Helper;
|
||
|
using StabilityMatrix.Core.Helper.Factory;
|
||
|
using StabilityMatrix.Core.Models.Packages;
|
||
|
using StabilityMatrix.Core.Python;
|
||
|
using StabilityMatrix.Core.Services;
|
||
|
|
||
|
namespace StabilityMatrix.Avalonia.DesignData;
|
||
|
|
||
|
public class MockLaunchPageViewModel : LaunchPageViewModel
|
||
|
{
|
||
|
public MockLaunchPageViewModel(
|
||
|
ILogger<MockLaunchPageViewModel> logger,
|
||
|
ISettingsManager settingsManager,
|
||
|
IPackageFactory packageFactory,
|
||
|
IPyRunner pyRunner,
|
||
|
INotificationService notificationService,
|
||
|
ISharedFolders sharedFolders,
|
||
|
ServiceManager<ViewModelBase> dialogFactory
|
||
|
)
|
||
|
: base(
|
||
|
logger,
|
||
|
settingsManager,
|
||
|
packageFactory,
|
||
|
pyRunner,
|
||
|
notificationService,
|
||
|
sharedFolders,
|
||
|
dialogFactory
|
||
|
) { }
|
||
|
|
||
|
protected override Task LaunchImpl()
|
||
|
{
|
||
|
IsLaunchTeachingTipsOpen = false;
|
||
|
|
||
|
RunningPackage = new DankDiffusion(null!, null!, null!, null!);
|
||
|
|
||
|
return Task.CompletedTask;
|
||
|
}
|
||
|
|
||
|
public override Task Stop()
|
||
|
{
|
||
|
RunningPackage = null;
|
||
|
|
||
|
return Task.CompletedTask;
|
||
|
}
|
||
|
}
|