using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.PPC.Common;
using Tango.PPC.Common.Application;
using Tango.PPC.Common.Navigation;
using Tango.PPC.Common.OS;
namespace Tango.PPC.UI.ViewModels
{
public class RestartingSystemViewVM : PPCViewModel
{
private IOperationSystemManager _os;
private INavigationManager _navigationManager;
public RestartingSystemViewVM(IPPCApplicationManager applicationManager, IOperationSystemManager operationSystemManager, INavigationManager navigationManager)
{
_navigationManager = navigationManager;
_os = operationSystemManager;
applicationManager.SystemRestartRequired += ApplicationManager_SystemRestartRequired;
}
private void ApplicationManager_SystemRestartRequired(object sender, EventArgs e)
{
InvokeUI(() =>
{
_navigationManager.NavigateTo(NavigationView.RestartingSystemView);
});
}
public async override void OnNavigatedTo()
{
baseckground-color: #fff0ff } /* Literal.String.Regex */
.highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */
.highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */
.highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */
.highlight .vc { color: #336699 } /* Name.Variable.Class */
.highlight .vg { color: #dd7700 } /* Name.Variable.Global */
.highlight .vi { color: #3333bb } /* Name.Variable.Instance */
.highlight .vm { color: #336699 } /* Name.Variable.Magic */
.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ class="nf">OnApplicationStarted()
{
}
}
}