big big update

This commit is contained in:
2024-06-30 18:18:59 +02:00
parent b56fd8240e
commit 8a91e9e3a4
2 changed files with 6 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
using OwnChar.Manager; using OwnChar.Api;
using OwnChar.Manager;
using System.Windows.Forms; using System.Windows.Forms;
namespace OwnChar.App.Desktop.Api; namespace OwnChar.App.Desktop.Api;
@@ -6,7 +7,7 @@ namespace OwnChar.App.Desktop.Api;
public interface IMainWindowApi public interface IMainWindowApi
{ {
Form Window { get; } Form Window { get; }
OwnCharManager? Manager { get; } IOwnCharManager? Manager { get; }
void OpenTab(Control content, string title); void OpenTab(Control content, string title);
void CloseTab(Control content); void CloseTab(Control content);
bool IsTabOpen(Control content); bool IsTabOpen(Control content);

View File

@@ -1,4 +1,5 @@
using OwnChar.App.Desktop.Api; using OwnChar.Api;
using OwnChar.App.Desktop.Api;
using OwnChar.App.Desktop.Api.Parameters; using OwnChar.App.Desktop.Api.Parameters;
using OwnChar.App.Desktop.LangRes; using OwnChar.App.Desktop.LangRes;
using OwnChar.App.Desktop.Settings; using OwnChar.App.Desktop.Settings;
@@ -20,7 +21,7 @@ public partial class MainWindow : RadTabbedForm, IMainWindowApi
private readonly MainWindowSettings settings = AppApi.Instance.Settings.Get<MainWindowSettings>(); private readonly MainWindowSettings settings = AppApi.Instance.Settings.Get<MainWindowSettings>();
Form IMainWindowApi.Window => this; Form IMainWindowApi.Window => this;
public OwnCharManager Manager { get; } = new(); public IOwnCharManager Manager { get; } = new OwnCharManager();
public MainWindow() public MainWindow()
{ {