프로젝트

일반

사용자정보

통계
| 개정판:

hytos / DTI_PID / APIDConverter / Form / APIDConverter.cs @ 8562d7dc

이력 | 보기 | 이력해설 | 다운로드 (1.48 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
        private void btnLoadFile_Click(object sender, EventArgs e)
24
        {
25
            Project_Info _ProjectInfo = Project_Info.GetInstance();
26

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

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

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