uploaded full backend brains, no face yet

This commit is contained in:
Belim
2025-05-04 16:24:02 +02:00
parent deb9e1ba5c
commit 32b5351bcb
11 changed files with 666 additions and 2 deletions
+18
View File
@@ -1,6 +1,9 @@
using System.Collections.Generic;
using System.Windows.Forms;
/// <summary>
/// Manages navigation between different views.
/// </summary>
public class NavigationManager
{
private Stack<Control> navigationHistory = new Stack<Control>(); // Holds previous views
@@ -71,4 +74,19 @@ public class NavigationManager
{
navigationHistory.Clear();
}
/// <summary>
/// Switches directly to the main panel, clearing the navigation history.
/// </summary>
public void GoToMain()
{
if (mainPanel != null)
{
navigationHistory.Clear(); // Clear the navigation history
panelContainer.Controls.Clear();
panelContainer.Controls.Add(mainPanel);
mainPanel.Dock = DockStyle.Fill;
mainPanel.BringToFront();
}
}
}