프로젝트

일반

사용자정보

개정판 d327a608

IDd327a6081c08f7db300ce67ba52cea2dc5f26be4
상위 465c8b6e
하위 c7db500b

gaqhf 이(가) 5년 이상 전에 추가함

dev issue #1223 : project info 정리 및 converter form 개발

Change-Id: I3e9d87f2f2218a1c1ace702e9f62b8d08beb2e2d

차이점 보기:

DTI_PID/APIDConverter/PIDCustomization.cs
91 91
            SetColorForEntity(BlockId,0);// white color
92 92
        }
93 93

  
94
        public static void GetProjectInfo()
95
        {
96
            Project_Info _ProjectInfo = Project_Info.GetInstance();
97
            _ProjectInfo.DefaultPath = Settings.Default.ProjectPath;
98
            _ProjectInfo.DBType = (ID2DB_Type)Settings.Default.ProjectDBType;
99
            _ProjectInfo.ServerIP = Settings.Default.ProjectServerIP;
100
            _ProjectInfo.Port = Settings.Default.ProjectPort;
101
            _ProjectInfo.DBUser = Settings.Default.ProjectDBUser;
102
            _ProjectInfo.DBPassword = Settings.Default.ProjectDBPassword;
103

  
104
            if (Project_DB.ConnTestAndCreateTable())
105
            {
106
                _ProjectInfo.Enable = true;
107
            }
108
            else
109
            {
110
                _ProjectInfo.Enable = false;
111
                MessageBox.Show("Fail project setting", "APID Converter", MessageBoxButtons.OK, MessageBoxIcon.Error);
112
            }
113
        }
94 114
        #region Command
95 115
        /// <summary>
96 116
        /// This is test command which gives the idea regarding selection of an entity and assigning different color to it
......
98 118
        [CommandMethod("APIDConverter")]
99 119
        public static void APIDConverter()
100 120
        {
121
            GetInstance();
101 122
            ConverterRibbonUI.InitUI();
123
            GetProjectInfo();
102 124
        }
103 125
        [CommandMethod("AC")]
104 126
        public static void AC()
105 127
        {
106 128
            GetInstance();
107 129
            ConverterRibbonUI.InitUI();
130
            GetProjectInfo();
108 131
        }
109 132
        [CommandMethod("ConverterForm")]
110 133
        public static void ConverterForm()
......
139 162
                    _ProjectInfo.Enable = false;
140 163
                    MessageBox.Show("Fail project setting", "APID Converter", MessageBoxButtons.OK, MessageBoxIcon.Error);
141 164
                }
142
                    
143 165
            }
144 166
        }
145 167
        [CommandMethod("MappingForm")]

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)