/
逻辑巡检点.cs
76 lines (68 loc) · 2.08 KB
/
逻辑巡检点.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
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
// File: 逻辑巡检点.cs
// Author: John
// Created: 2012年10月8日 10:27:04
// Purpose: Definition of Class 逻辑巡检点
using System;
public class 逻辑巡检点
{
public int 编号;
public string 名字;
public string 别名;
public System.Collections.Generic.List<巡检项目> 巡检项目;
/// <summary>
/// Property for collection of 巡检项目
/// </summary>
/// <pdGenerated>Default opposite class collection property</pdGenerated>
public System.Collections.Generic.List<巡检项目> 巡检项目
{
get
{
if (巡检项目 == null)
巡检项目 = new System.Collections.Generic.List<巡检项目>();
return 巡检项目;
}
set
{
RemoveAll巡检项目();
if (value != null)
{
foreach (巡检项目 o巡检项目 in value)
Add巡检项目(o巡检项目);
}
}
}
/// <summary>
/// Add a new 巡检项目 in the collection
/// </summary>
/// <pdGenerated>Default Add</pdGenerated>
public void Add巡检项目(巡检项目 new巡检项目)
{
if (new巡检项目 == null)
return;
if (this.巡检项目 == null)
this.巡检项目 = new System.Collections.Generic.List<巡检项目>();
if (!this.巡检项目.Contains(new巡检项目))
this.巡检项目.Add(new巡检项目);
}
/// <summary>
/// Remove an existing 巡检项目 from the collection
/// </summary>
/// <pdGenerated>Default Remove</pdGenerated>
public void Remove巡检项目(巡检项目 old巡检项目)
{
if (old巡检项目 == null)
return;
if (this.巡检项目 != null)
if (this.巡检项目.Contains(old巡检项目))
this.巡检项目.Remove(old巡检项目);
}
/// <summary>
/// Remove all instances of 巡检项目 from the collection
/// </summary>
/// <pdGenerated>Default removeAll</pdGenerated>
public void RemoveAll巡检项目()
{
if (巡检项目 != null)
巡检项目.Clear();
}
}