aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Integration/Operation/MachineStatuses.cs
blob: fb21b27fa0f4be1d9f387405e74e4bd3a9ae6250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.Integration.Operation
{
    public enum MachineStatuses
    {
        [Description("Disconnected")]
        Disconnected = 0,
        [Description("Getting Ready")]
        PowerUp = 1,
        [Description("Standby")]
        Standby = 2,
        [Description("Ready To Dye")]
        ReadyToDye = 3,
        [Description("Getting Ready")]
        GettingReady = 4,
        [Description("Dyeing")]
        Printing = 5,
        [Description("Service")]
        Service = 6,
        [Description("Upgrading")]
        Upgrading = 7,
        [Description("Shutting Down")]
        ShuttingDown = 8,
        [Description("Error")]
        Error = 9,
    }
}
ass="n">Settings = SettingsManager.Default.GetOrCreate<AzureUtilsSettings>(); } public virtual void OnApplicationReady() { } public virtual void OnAuthenticated(IAzure azure, List<IWebAppBase> apps) { } protected void ConfirmationHandler(object sender, AzureUtilsConfirmationEventArgs e) { if (MessageBox.Show(e.Message, "Confirmation Required", MessageBoxButton.OKCancel, MessageBoxImage.Question) == MessageBoxResult.OK) { e.Confirm(); } else { e.Cancel(); } } protected void RequireRefresh() { TangoIOC.Default.GetAllInstancesByBase<AzureDashboardViewModel>().ToList().ForEach(x => x.OnRefreshRequired()); } protected virtual void OnRefreshRequired() { } public void ProgressHandler(object sender, AzureUtilsProgressEventArgs e) { StatusManager.UpdateStatus(e); } } }