aboutsummaryrefslogtreecommitdiffstats
path: root/Software/PMR/Messages/ThreadLoading/ContinueThreadLoadingResponse.proto
blob: b937fbb340d3db9c71158cedd6963550a057243c (plain)
1
2
3
4
5
6
7
8
9
syntax = "proto3";

package Tango.PMR.ThreadLoading;
option java_package = "com.twine.tango.pmr.threadloading";

message ContinueThreadLoadingResponse
{

}
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 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core.Commands;
using Tango.PPC.Common;

namespace Tango.PPC.Power.ViewModels
{
    /// <summary>
    /// Represents the main view VM and entry point for <see cref="Synchronization.MyModule"/>.
    /// </summary>
    /// <seealso cref="Tango.PPC.Common.PPCViewModel" />
    public class MainViewVM : PPCViewModel
    {
        /// <summary>
        /// Gets or sets the restart command.
        /// </summary>
        public RelayCommand RestartCommand { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="MainViewVM"/> class.
        /// </summary>
        public MainViewVM()
        {
            RestartCommand = new RelayCommand(RestartApplication);
        }

        /// <summary>
        /// Called when the application has been started
        /// </summary>
        public override void OnApplicationStarted()
        {
            //Start initializing here rather then in the constructor.
        }

        /// <summary>
        /// Restarts the application.
        /// </summary>
        private async void RestartApplication()
        {
            if (await NotificationProvider.ShowQuestion("Are you sure you want to restart the application?"))
            {
                ApplicationManager.Restart();
            }
        }
    }
}