forked from V-Modder/SharpUpdate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ISharpUpdatable.cs
46 lines (40 loc) · 1.37 KB
/
ISharpUpdatable.cs
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
using System;
using System.Drawing;
using System.Reflection;
using System.Windows.Forms;
namespace SharpUpdate
{
/// <summary>
/// The interface that all applications need to implement in order to use SharpUpdate
/// </summary>
public interface ISharpUpdatable
{
/// <summary>
/// The name of your application as you want it displayed on the update form
/// </summary>
string ApplicationName { get; }
/// <summary>
/// An identifier string to use to identify your application in the update.xml
/// Should be the same as your appId in the update.xml
/// </summary>
string ApplicationID { get; }
/// <summary>
/// The current assembly
/// </summary>
Assembly ApplicationAssembly { get; }
/// <summary>
/// The application's icon to be displayed in the top left
/// </summary>
Icon ApplicationIcon { get; }
/// <summary>
/// The location of the update.xml on a server
/// </summary>
Uri UpdateXmlLocation { get; }
/// <summary>
/// The context of the program.
/// For Windows Forms Applications, use 'this'
/// Console Apps, reference System.Windows.Forms and return null.
/// </summary>
Form Context { get; }
}
}