프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

hytos / DTI_PID / APIDConverter / Form / APIDConverter.cs @ 465c8b6e

이력 | 보기 | 이력해설 | 다운로드 (1.65 KB)

1
using System;
2
using System.Collections.Generic;
3
using System.ComponentModel;
4
using System.Data;
5
using System.Drawing;
6
using System.Linq;
7
using System.Text;
8
using System.Threading.Tasks;
9
using System.Windows.Forms;
10
using AVEVA.PID.CustomizationUtility.DB;
11
using AVEVA.PID.CustomizationUtility.Model;
12
using AVEVA.PID.CustomizationUtility.Properties;
13

    
14
namespace AVEVA.PID.CustomizationUtility
15
{
16
    public partial class APIDConverter : DevExpress.XtraBars.Ribbon.RibbonForm
17
    {
18
        public APIDConverter()
19
        {
20
            InitializeComponent();
21
        }
22

    
23
        DataTable ID2SymbolTypeTable = null;
24

    
25
        private void btnLoadFile_Click(object sender, EventArgs e)
26
        {
27
            Project_Info _ProjectInfo = Project_Info.GetInstance();
28

    
29
            OpenFileDialog dia = new OpenFileDialog();
30
            dia.Filter = "Xml Files(*.xml)|*.xml";
31
            dia.InitialDirectory = _ProjectInfo.TempDirPath;
32
            dia.Multiselect = true;
33

    
34
            if (dia.ShowDialog() == DialogResult.OK)
35
            {
36
                foreach (var fileName in dia.FileNames)
37
                {
38
                    Document document = new Document(fileName, ID2SymbolTypeTable);
39

    
40
                }
41
            }
42
        }
43

    
44
        private void APIDConverter_Load(object sender, EventArgs e)
45
        {
46
            Project_Info project = Project_Info.GetInstance();
47
            if (!project.Enable)
48
            {
49
                MessageBox.Show("Check Project Setting!", "APID Converter", MessageBoxButtons.OK, MessageBoxIcon.Warning);
50
            }
51
            else
52
            {
53
                ID2SymbolTypeTable = Project_DB.SelectID2SymbolTable();
54
            }
55
        }
56
    }
57
}
클립보드 이미지 추가 (최대 크기: 500 MB)