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

namespace Tango.MachineStudio.Common.Web
{
    public class DownloadLatestVersionRequest : WebRequestMessage
    {

    }
}
="p">{ public class 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); } } }