a lot of work
This commit is contained in:
8
ModpackUpdater.Apps.Manager/Api/FeatureTypes.cs
Normal file
8
ModpackUpdater.Apps.Manager/Api/FeatureTypes.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace ModpackUpdater.Apps.Manager.Api;
|
||||
|
||||
public static class FeatureTypes
|
||||
{
|
||||
public static string Workspace => "workspace";
|
||||
public static string Tools => "tools";
|
||||
public static string ActionsContextMenu => "cm.actions";
|
||||
}
|
||||
@@ -1,12 +1,10 @@
|
||||
using Avalonia.Controls;
|
||||
using ModpackUpdater.Apps.Manager.Ui.Models;
|
||||
|
||||
namespace ModpackUpdater.Apps.Manager.Api.Model;
|
||||
|
||||
public interface IMainApi
|
||||
{
|
||||
IWorkspace? CurWorkspace { get; }
|
||||
IActionSetInfos? CurActionSet { get; }
|
||||
Window MainWindow { get; }
|
||||
void UpdateItem(InstallAction action);
|
||||
void UpdateItem(IActionSetInfos actionSetInfos);
|
||||
MainWindowViewModel Model { get; }
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
namespace ModpackUpdater.Apps.Manager.Api.Model;
|
||||
|
||||
public class WorkspaceContext(IMainApi mainApi, IWorkspace workspace)
|
||||
public class WorkspaceContext(IMainApi mainApi, IWorkspace? workspace)
|
||||
{
|
||||
public IMainApi MainApi => mainApi;
|
||||
public IWorkspace Workspace { get; set; } = workspace;
|
||||
public IWorkspace? Workspace { get; set; } = workspace;
|
||||
}
|
||||
Reference in New Issue
Block a user