aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Shared/RemoteUpgrade/StartRemoteApplicationUpgradeRequest.cs
blob: bd2d6eba36b31245cb6fc428bd42d82444271ec1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.PPC.Shared.RemoteUpgrade
{
    public class StartRemoteApplicationUpgradeRequest
    {
        public String RemoteTupFilePath { get; set; }
        public bool SetupFirmware { get; set; } = true;
        public bool SetupFPGA { get; set; } = true;
    }
}
.Views { /// <summary> /// Interaction logic for MachineSetupView.xaml /// </summary> public partial class MachineSetupView : UserControl, IMachineSetupView { public static MachineSetupView Instance { get; set; } public MachineSetupView() { InitializeComponent(); Instance = this; } public void AppendLog(string log) { txtLog.AppendText(log); txtLog.SelectionStart = txtLog.Text.Length; txtLog.ScrollToEnd(); } public Task NavigateTo(MachineSetupViewVM.MachineSetupView view) { TaskCompletionSource<object> source = new TaskCompletionSource<object>(); navigationControl.NavigateTo(view.ToString(),() => { source.SetResult(new object()); }); return source.Task; } } }