fix keyboard catch, fix loading

refactoring
This commit is contained in:
Alex Bezdieniezhnykh
2024-11-25 13:03:46 +02:00
parent b61bed3b51
commit 30b9b9aa80
18 changed files with 88 additions and 117 deletions
+6 -1
View File
@@ -57,6 +57,10 @@ public partial class MainSuite
foreach (var azaionModule in _modules)
{
var window = (_sp.GetRequiredService(azaionModule.MainWindowType) as Window)!;
window.Height = 0;
window.Width = 0;
window.Show();
window.Hide();
_openedWindows.Add(window);
var icon = new SvgViewbox
{
@@ -78,7 +82,8 @@ public partial class MainSuite
Content = window.Content,
Background = Brushes.Black,
Foreground = Brushes.White,
Cursor = Cursors.Hand
Cursor = Cursors.Hand,
Tag = azaionModule.WindowEnum
};
MainTabControl.Items.Add(tabItem);
}