aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.UsersAndRoles/Navigation/UsersAndRolesNavigationManager.cs
blob: b56962df75105ce5d28f21605f73a301c413fb9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Logging;
using Tango.MachineStudio.Common.Navigation;
using Tango.MachineStudio.UsersAndRoles.Views;

namespace Tango.MachineStudio.UsersAndRoles.Navigation
{
    public class UsersAndRolesNavigationManager
    {
        private LogManager LogManager = LogManager.Default;

        public void NavigateTo(UsersAndRolesNavigationView view)
        {
            LogManager.Log(String.Format("Navigating to view {0}...", view.ToString()));
            MainView.Instance.TransitionControl.NavigateTo(view.ToString());
        }
    }
}
) throw new ArgumentNullException(parameterName); return val; } public static int CheckNotNegative(int val, string parameterName) { if (val < 0) throw new ArgumentOutOfRangeException(parameterName, val, "value must not be negative"); return val; } public static int CheckInRangeInclusive(int val, string parameterName, int lower, int upper) { if (val < lower || val > upper) throw new ArgumentOutOfRangeException(parameterName, val, "Expected: " + lower.ToString(CultureInfo.InvariantCulture) + " <= " + parameterName + " <= " + upper.ToString(CultureInfo.InvariantCulture)); return val; } public static InvalidOperationException NoDocumentAssigned() { return new InvalidOperationException("Document is null"); } public static InvalidOperationException NoValidCaretPosition() { return new InvalidOperationException("Could not find a valid caret position in the line"); } } }