/// <summary> /// The initital constructor of the main ui /// </summary> public KPA_KPI_UI() { InitializeComponent(); // Lock the navigations functionality navigationSettings = new Navigation.NavigationSettings(); navigationSettings.Status = Navigation.Functionality.Locked; }
/// <summary> /// Default Constructor /// </summary> public NavigationView() { InitializeComponent(); // Create a new instance of navigation arguments NavigationArguments = new NavigationArgs(); // Create a new navigation settings so the view knows status and visibility of the navigation Settings = new NavigationSettings(); }
/// <summary> /// Attach the navigation settings to the view /// </summary> /// <param name="_settings"></param> public void AttachSettings(NavigationSettings _settings) { Settings = _settings; }
/// <summary> /// Default Constructor /// </summary> public NavigationController(INavigationView _view, EventHandler <NavigationArgs> _handle, NavigationSettings _settings) { // Get control of the navigation view supplied view = _view; // allow the navigation view to view the navigation setting (view as NavigationView).AttachSettings(_settings); // Attach the method handle from the main form to the views event listenr view.NavigationClick += _handle; }