コード例 #1
0
        /// <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;
        }
コード例 #2
0
        /// <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();
        }
コード例 #3
0
 /// <summary>
 /// Attach the navigation settings to the view
 /// </summary>
 /// <param name="_settings"></param>
 public void AttachSettings(NavigationSettings _settings)
 {
     Settings = _settings;
 }
コード例 #4
0
        /// <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;
        }