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

namespace Tango.PPC.Common
{
    /// <summary>
    /// Represents a PPC view.
    /// </summary>
    public interface IPPCView
    {

    }
}
ord.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-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 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Tango.BL.Entities;
using Tango.Integration.Operation;
using Tango.Integration.ExternalBridge;

namespace Tango.PPC.Common.Application
{
    /// <summary>
    /// Represents the application manager.
    /// </summary>
    public interface IPPCApplicationManager
    {
        /// <summary>
        /// Occurs when the application has started.
        /// </summary>
        event EventHandler ApplicationStarted;

        /// <summary>
        /// Occurs when the application is ready and all modules are views are loaded.
        /// </summary>
        event EventHandler ApplicationReady;

        /// <summary>
        /// Occurs when the main window content has been rendered.
        /// </summary>
        event EventHandler ContentRendered;

        /// <summary>
        /// Occurs when all PPC modules are ready and initialized.
        /// </summary>
        event EventHandler ModulesInitialized;

        /// <summary>
        /// Occurs when machine setup is required.
        /// </summary>
        event EventHandler SetupRequired;

        /// <summary>
        /// Occurs when a system restart is required.
        /// </summary>
        event EventHandler SystemRestartRequired;

        /// <summary>
        /// Occurs when the updater utility has failed to perform the last update.
        /// </summary>
        event EventHandler UpdaterFailed;

        /// <summary>
        /// Occurs when the application has encountered an error when initializing.
        /// </summary>
        event EventHandler<Exception> ApplicationInitializationError;

        /// <summary>
        /// Gets a value indicating whether the application is shutting down.
        /// </summary>
        bool IsShuttingDown { get; }

        /// <summary>
        /// Gets a value indicating whether the application is in technician mode.
        /// </summary>
        bool IsInTechnicianMode { get; }

        /// <summary>
        /// Gets a value indicating whether an update has occurred before the application started.
        /// </summary>
        bool IsAfterUpdate { get;  }

        /// <summary>
        /// Gets a value indicating whether the updater utility has failed to perform the last update.
        /// </summary>
        bool IsUpdateFailed { get; }

        /// <summary>
        /// Shutdown the application.
        /// </summary>
        void ShutDown();

        /// <summary>
        /// Restarts the application.
        /// </summary>
        void Restart();

        /// <summary>
        /// Runs the updater utility and exits the application.
        /// </summary>
        void UpdateApplication(String updaterPath, String arguments);

        /// <summary>
        /// Enteres the application technician mode.
        /// </summary>
        void EnterTechnicianMode(bool displayNotification = true);

        /// <summary>
        /// Exits the application technician mode.
        /// </summary>
        void ExitTechnicianMode();

        /// <summary>
        /// Gets the application version.
        /// </summary>
        Version Version { get; }

        /// <summary>
        /// Gets the firmware version.
        /// </summary>
        Version FirmwareVersion { get; }

        /// <summary>
        /// Gets the application build date.
        /// </summary>
        String BuildDate { get; }

        /// <summary>
        /// Gets the application startup date.
        /// </summary>
        DateTime StartUpDate { get; }

        /// <summary>
        /// Gets or sets the application folder.
        /// </summary>
        String StartPath { get; }

        /// <summary>
        /// Gets or sets a value indicating whether the screen is currently locked.
        /// </summary>
        bool IsScreenLocked { get; set; }

        /// <summary>
        /// Resets the screen lock timer.
        /// </summary>
        void ResetScreenLockTimer();

        /// <summary>
        /// Invokes a dialog for entering a password and releasing the screen lock.
        /// </summary>
        void ReleaseScreenLock();

        /// <summary>
        /// Sets the state of the main window.
        /// </summary>
        /// <param name="state">The state.</param>
        void SetWindowState(WindowState state);
    }
}