big big update
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user