Constans.cs
1.2 KB
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
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
namespace URSoldering.Common
{
public class Constans
{
}
public class RESULT
{
public static RESULT NONE = new RESULT("NONE", Color.Gray);
public static RESULT OK = new RESULT("OK", Color.YellowGreen);
public static RESULT NG = new RESULT("NG", Color.Red);
private RESULT(string result, Color color)
{
this.result = result;
this.Color = color;
}
private string result;
public Color Color { get; set; }
public override string ToString()
{
return result.ToString();
}
}
/// <summary>
/// 设备状态
/// </summary>
public enum STATUS
{
/// <summary>
/// 初始化
/// </summary>
INIT,
/// <summary>
/// 复位
/// </summary>
RESET,
/// <summary>
/// 可接收新的指令
/// </summary>
READY,
/// <summary>
/// 正在执行指令
/// </summary>
BUSY,
/// <summary>
/// 出错
/// </summary>
ERROR
}
}