aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Navigation/DeveloperNavigationManager.cs
blob: b1039c2c5244205787546d255053de949b463831 (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.Developer.Views;

namespace Tango.MachineStudio.Developer.Navigation
{
    public class DeveloperNavigationManager
    {
        private LogManager LogManager = LogManager.Default;

        public void NavigateTo(DeveloperNavigationView view)
        {
            LogManager.Log(String.Format("Navigating to view {0}...", view.ToString()));
            MainView.Instance.NavigationControl.NavigateTo(view.ToString());
        }
    }
}
{ /// <summary> /// Gets the module name. /// </summary> public override string Name => "Synchronization"; /// <summary> /// Gets the module description. /// </summary> public override string Description => "Perform local to local or remote to local database synchronization."; /// <summary> /// Gets the module cover image. /// </summary> public override BitmapSource Image => ResourceHelper.GetImageFromResources("Images/synchronization.jpg"); /// <summary> /// Gets the module entry point view type. /// </summary> public override Type MainViewType { get { return typeof(MainView); } } /// <summary> /// Gets the permission required to see and load this module. /// </summary> public override Permissions Permission => Permissions.RunSynchronizationModule; /// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public override void Dispose() { } } }