개정판 6ec631d2
dev issue #000 : add document
Change-Id: I484a9f6e2eb7a4d959c0594eb2cf6fe0c2ce0077
DTI_PID/APIDConverter/AVEVA.PID.CustomizationUtility_ACAD2018_x64.csproj | ||
---|---|---|
93 | 93 |
<Reference Include="WindowsBase" /> |
94 | 94 |
</ItemGroup> |
95 | 95 |
<ItemGroup> |
96 |
<Compile Include="Model\Document.cs" /> |
|
96 | 97 |
<Compile Include="Model\Equipment.cs" /> |
97 | 98 |
<Compile Include="Utils\APIDUtils.cs" /> |
98 | 99 |
<Compile Include="Form\APIDConverter.cs"> |
DTI_PID/APIDConverter/Form/MappingForm.Designer.cs | ||
---|---|---|
44 | 44 |
this.ribbonControl.ShowDisplayOptionsMenuButton = DevExpress.Utils.DefaultBoolean.False; |
45 | 45 |
this.ribbonControl.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.ShowOnMultiplePages; |
46 | 46 |
this.ribbonControl.ShowToolbarCustomizeItem = false; |
47 |
this.ribbonControl.Size = new System.Drawing.Size(800, 55);
|
|
47 |
this.ribbonControl.Size = new System.Drawing.Size(800, 32);
|
|
48 | 48 |
this.ribbonControl.Toolbar.ShowCustomizeItem = false; |
49 | 49 |
// |
50 | 50 |
// MappingForm |
... | ... | |
56 | 56 |
this.Name = "MappingForm"; |
57 | 57 |
this.Ribbon = this.ribbonControl; |
58 | 58 |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; |
59 |
this.Text = "MappingForm";
|
|
59 |
this.Text = "Item Mapping";
|
|
60 | 60 |
((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).EndInit(); |
61 | 61 |
this.ResumeLayout(false); |
62 | 62 |
this.PerformLayout(); |
DTI_PID/APIDConverter/Form/ProjectForm.Designer.cs | ||
---|---|---|
44 | 44 |
this.ribbonControl.ShowDisplayOptionsMenuButton = DevExpress.Utils.DefaultBoolean.False; |
45 | 45 |
this.ribbonControl.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.ShowOnMultiplePages; |
46 | 46 |
this.ribbonControl.ShowToolbarCustomizeItem = false; |
47 |
this.ribbonControl.Size = new System.Drawing.Size(800, 32);
|
|
47 |
this.ribbonControl.Size = new System.Drawing.Size(467, 32);
|
|
48 | 48 |
this.ribbonControl.Toolbar.ShowCustomizeItem = false; |
49 | 49 |
// |
50 | 50 |
// ProjectForm |
51 | 51 |
// |
52 | 52 |
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); |
53 | 53 |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
54 |
this.ClientSize = new System.Drawing.Size(800, 525);
|
|
54 |
this.ClientSize = new System.Drawing.Size(467, 530);
|
|
55 | 55 |
this.Controls.Add(this.ribbonControl); |
56 | 56 |
this.Name = "ProjectForm"; |
57 | 57 |
this.Ribbon = this.ribbonControl; |
58 | 58 |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; |
59 |
this.Text = "ProjectForm";
|
|
59 |
this.Text = "Project Setting";
|
|
60 | 60 |
((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).EndInit(); |
61 | 61 |
this.ResumeLayout(false); |
62 | 62 |
this.PerformLayout(); |
DTI_PID/APIDConverter/Model/Document.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
using System.Threading.Tasks; |
|
6 |
using System.IO; |
|
7 |
|
|
8 |
namespace AVEVA.PID.CustomizationUtility.Model |
|
9 |
{ |
|
10 |
public class Document |
|
11 |
{ |
|
12 |
public bool Enabled = false; |
|
13 |
|
|
14 |
public List<Symbol> Symbols { get; set; } |
|
15 |
public List<Line> Lines { get; set; } |
|
16 |
public List<Equipment> Equipments { get; set; } |
|
17 |
|
|
18 |
public Document(string xmlPath) |
|
19 |
{ |
|
20 |
Symbols = new List<Symbol>(); |
|
21 |
Lines = new List<Line>(); |
|
22 |
Equipments = new List<Equipment>(); |
|
23 |
|
|
24 |
if (File.Exists(xmlPath)) |
|
25 |
{ |
|
26 |
|
|
27 |
} |
|
28 |
} |
|
29 |
} |
|
30 |
} |
내보내기 Unified diff