A simple navigation sub system for WinForms projects.
Super simple to register views.
NavigationSystem.Register("HomePage", new HomeView());
NavigationSystem.Register("SettingsPage", new SettingsView());
Set a home view which may be visited frequently
NavigationSystem.SetHome("HomePage");
NavigationSystem.GoHome();
Navigate using keys.
NavigationSystem.NavigateTo("SettingsPage");
NavigationSystem.GoBack();
The navigation library also provides a basic messaging system to communicate data between views.
MessageSystem.SendMessage("SettingsPage", "EnableField", true);
You can also broadcast a message to all views.
MessageSystem.Broadcast("PopulateBuffers", { "Any Data", "Any Type" });