mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 19:56:31 +00:00
rework to Azaion.Suite, show tabs with annotator and dataset explorer
This commit is contained in:
@@ -1,19 +1,25 @@
|
||||
using System.IO;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using Azaion.Annotator.Extensions;
|
||||
using Azaion.Common.DTO.Config;
|
||||
using Azaion.Dataset;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
namespace Azaion.Suite;
|
||||
|
||||
public partial class MainSuite : Window
|
||||
public partial class MainSuite
|
||||
{
|
||||
private readonly AppConfig _appConfig;
|
||||
private readonly IConfigUpdater _configUpdater;
|
||||
private readonly Annotator.Annotator _annotator;
|
||||
private readonly DatasetExplorer _datasetExplorer;
|
||||
|
||||
public MainSuite(IOptions<AppConfig> appConfig, IConfigUpdater configUpdater)
|
||||
public MainSuite(IOptions<AppConfig> appConfig, IConfigUpdater configUpdater, Annotator.Annotator annotator, DatasetExplorer datasetExplorer)
|
||||
{
|
||||
_configUpdater = configUpdater;
|
||||
_annotator = annotator;
|
||||
_datasetExplorer = datasetExplorer;
|
||||
_appConfig = appConfig.Value;
|
||||
InitializeComponent();
|
||||
Loaded += OnLoaded;
|
||||
@@ -41,6 +47,17 @@ public partial class MainSuite : Window
|
||||
|
||||
if (_appConfig.WindowConfig.FullScreen)
|
||||
WindowState = WindowState.Maximized;
|
||||
|
||||
MainTabControl.Items.Add(new TabItem
|
||||
{
|
||||
Header = "Annotator",
|
||||
Content = _annotator.Content
|
||||
});
|
||||
MainTabControl.Items.Add(new TabItem
|
||||
{
|
||||
Header = "Dataset Explorer",
|
||||
Content = _datasetExplorer.Content
|
||||
});
|
||||
}
|
||||
|
||||
private async Task SaveUserSettings()
|
||||
|
||||
Reference in New Issue
Block a user