add api culture

This commit is contained in:
2024-05-17 20:43:16 +02:00
parent 8e61053f44
commit 79137e7bc1
16 changed files with 138 additions and 74 deletions

View File

@@ -0,0 +1,10 @@
using System.Windows.Forms;
namespace OwnChar.App.Desktop.Api
{
public interface IMainWindowApi
{
void OpenTab(Control content);
void CloseTab(Control content);
}
}

View File

@@ -0,0 +1,8 @@
namespace OwnChar.App.Desktop.Api
{
public interface IMainWindowTab
{
string Name { get; }
IMainWindowApi MaindWindow { get; internal set; }
}
}

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OwnChar.App.Desktop.Api
{
public interface IOwnCharApi
{
public static IOwnCharApi Instance { get; } = new AppApi();
public IMainWindowApi? MainWindow { get; internal set; }
}
}