aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Web/LoginMethod.cs
blob: 83f1c08507d723a6de1df9a937a2ee7f13a6b4b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.MachineStudio.Common.Web
{
    public enum LoginMethod
    {
        [Description("Active Directory")]
        ActiveDirectory,
        [Description("Standard User")]
        StandardUser,
    }
}
ConsoleManager { public TangoIOC TangoIOC { get; set; } private Action<String> _writeLine; public ConsoleManager(Action<String> writeLine) { _writeLine = writeLine; TangoIOC = TangoIOC.Default; } public void WriteLine(String text) { _writeLine(text); } public void InvokeUI(Action action) { Core.Helpers.ThreadsHelper.InvokeUI(action); } public void StartModule(String name) { IStudioModuleLoader loader = TangoIOC.Default.GetInstance<IStudioModuleLoader>(); var module = loader.AllModules.SingleOrDefault(x => x.Name == name); TangoIOC.Default.GetInstance<ViewModels.MainViewVM>().StartModule(module); } } }