Ejemplo n.º 1
0
        private void WriteData()
        {
            int nType  = cmbType.SelectedIndex;
            int nPoint = cmbPoint.SelectedIndex;

            AIniLight aIniLight = new AIniLight(nType, nPoint);

            aIniLight.m_strIndex   = txtIndex.Text;
            aIniLight.m_strChannel = txtChannel.Text;
            int i;

            for (i = 0; i < 3; i++)
            {
                aIniLight.m_pstrExposure[i] = m_ptxtExposure[i].Text;
                aIniLight.m_pstrLed[i]      = m_ptxtLed[i].Text;
            }
            aIniLight.Write();

            // 2012.12.27
            string strTxt = "Light Change: " + cmbType.Text + "(" + cmbPoint.Text + ")";

            // 2015.02.11
            AVisionProBuild.WriteLogFile(strTxt, ".Setup.txt");
            strTxt = "HW: " + txtIndex.Text + "\t" + txtChannel.Text;/* +"\t" +
                                                                      * txtIndex_s1.Text + "\t" + txtChannel_s1.Text + "\t" +
                                                                      * txtIndex_s2.Text + "\t" + txtChannel_s3.Text + "\t" +
                                                                      * txtIndex_s2.Text + "\t" + txtChannel_s3.Text;*/
            // 2015.02.11
            AVisionProBuild.WriteLogFile(strTxt, ".Setup.txt");
            for (i = 0; i < 3; i++)
            {
                strTxt = Convert.ToString(i + 1) + ": " + m_ptxtExposure[i].Text + "\t" + m_ptxtLed[i].Text;

                /*
                 * strTxt = Convert.ToString(i + 1) + ": " + m_ptxtExposure[i].Text + "\t" + m_pptxtLed[0, i].Text +"\t_\t" +
                 *  m_pptxtLed[1, i].Text + "\t_\t" +
                 *  m_pptxtLed[2, i].Text + "\t_\t" +
                 *  m_pptxtLed[3, i].Text;
                 */
                // 2015.02.11
                AVisionProBuild.WriteLogFile(strTxt, ".Setup.txt");
            }
        }
Ejemplo n.º 2
0
        private void ReadData()
        {
            int nType  = cmbType.SelectedIndex;
            int nPoint = cmbPoint.SelectedIndex;

            AIniLight aIniLight = new AIniLight(nType, nPoint);

            aIniLight.Read();

            txtIndex.Text   = aIniLight.m_strIndex;
            txtChannel.Text = aIniLight.m_strChannel;
            int i;

            for (i = 0; i < 3; i++)
            {
                m_ptxtExposure[i].Text = aIniLight.m_pstrExposure[i];
                m_ptxtLed[i].Text      = aIniLight.m_pstrLed[i];
            }
        }