-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBatchItem.cs
More file actions
105 lines (87 loc) · 2.7 KB
/
Copy pathBatchItem.cs
File metadata and controls
105 lines (87 loc) · 2.7 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
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
#region using statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#endregion
namespace DataJuggler.Excelerate
{
#region class BatchItem
/// <summary>
/// This class represents all the changes for a Worksheet.
/// </summary>
public class BatchItem
{
#region Private Variables
private LoadWorksheetInfo worksheetInfo;
private List<Row> updates;
#endregion
#region Constructor
/// <summary>
/// Create a new instance of a 'BatchItem' object.
/// </summary>
public BatchItem()
{
// Create a new collection of 'Row' objects.
this.Updates = new List<Row>();
// Create the WorksheetInfo
this.WorksheetInfo = new LoadWorksheetInfo();
}
#endregion
#region Properties
#region HasUpdates
/// <summary>
/// This property returns true if this object has an 'Updates'.
/// </summary>
public bool HasUpdates
{
get
{
// initial value
bool hasUpdates = (this.Updates != null);
// return value
return hasUpdates;
}
}
#endregion
#region HasWorksheetInfo
/// <summary>
/// This property returns true if this object has a 'WorksheetInfo'.
/// </summary>
public bool HasWorksheetInfo
{
get
{
// initial value
bool hasWorksheetInfo = (this.WorksheetInfo != null);
// return value
return hasWorksheetInfo;
}
}
#endregion
#region Updates
/// <summary>
/// This property gets or sets the value for 'Updates'.
/// </summary>
public List<Row> Updates
{
get { return updates; }
set { updates = value; }
}
#endregion
#region WorksheetInfo
/// <summary>
/// This property gets or sets the value for 'WorksheetInfo'.
/// </summary>
public LoadWorksheetInfo WorksheetInfo
{
get { return worksheetInfo; }
set { worksheetInfo = value; }
}
#endregion
#endregion
}
#endregion
}