blob: f7ce0cc9b2fe9e536ec2d0f07cf2b2743ff2dc0e (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Tango.BL.Entities;
namespace Tango.FSE.Common.FSEApplication
{
/// <summary>
/// Represents the application manager.
/// </summary>
public interface IFSEApplicationManager
{
/// <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 the application has encountered an error when initializing.
/// </summary>
event EventHandler<Exception> ApplicationInitializationError;
/// <summary>
/// Gets a value indicating whether the application is past the <see cref="ApplicationReady"/> event.
/// </summary>
bool IsReady { get; }
/// <summary>
/// Gets a value indicating whether the application is shutting down.
/// </summary>
bool IsShuttingDown { get; }
/// <summary>
/// Gets a value indicating whether an update has occurred before the application started.
/// </summary>
bool IsAfterUpdate { get; }
/// <summary>
/// Gets the application startup arguments.
/// </summary>
List<String> StartupArgs { get; }
/// <summary>
/// Shutdown the application.
/// </summary>
void ShutDown();
/// <summary>
/// Restarts the application.
/// </summary>
void Restart();
/// <summary>
/// Activates the main window if it's not in focus.
/// </summary>
void ActivateMainWindow();
/// <summary>
/// Gets the application version.
/// </summary>
Version Version { 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 a value indicating whether the application is currently debugging machine service via local host.
/// </summary>
bool IsWebDebugMode { get; }
/// <summary>
/// Gets or sets a value indicating whether to display the main window controls.
/// </summary>
bool DisplayWindowControls { get; set; }
/// <summary>
/// Gets or sets the state of the application main window.
/// </summary>
WindowState WindowState { get; set; }
/// <summary>
/// Gets a value indicating whether the application is currently running in demo mode.
/// </summary>
bool DemoMode { get; }
}
}
|