Beispiel #1
0
 private void chkMark_Click(object sender, EventArgs e)
 {
     m_aCalibCheckerboard.Uncalibrate();
     m_aDisplay.ClearOverlay();
     stslblStatus.Text      = AUtil.GetXmlLanguage("Not_Calibrated");
     stslblStatus.ForeColor = Color.Crimson;
 }
Beispiel #2
0
        // 2013.12.02
        private void InitLanguage()
        {
            // Common------------
            btnClose.Text = AUtil.GetXmlLanguage("Close");

            // AFrmTypeSet------------
            lblTitle.Text      = AUtil.GetXmlLanguage("Type_Setup");
            lblTypeList.Text   = AUtil.GetXmlLanguage("Type_List");
            lblPointList.Text  = AUtil.GetXmlLanguage("Point_List");
            lblTypeName.Text   = AUtil.GetXmlLanguage("Type_Name");
            lblPlcToPc.Text    = AUtil.GetXmlLanguage("PLC_To_PC");
            lblPointCount.Text = AUtil.GetXmlLanguage("Point_Count");
            lblPointName.Text  = AUtil.GetXmlLanguage("Point_Name");
            // 2017.06.08
            //lblPathSetup.Text = AUtil.GetXmlLanguage("Path_Setup");
            //btnSelectPath.Text = AUtil.GetXmlLanguage("Select_Path");
            //btnSavePath.Text = AUtil.GetXmlLanguage("Save_Path");

            btnAdd.Text             = AUtil.GetXmlLanguage("Add");
            btnDel.Text             = AUtil.GetXmlLanguage("Del");
            btnPlcToPcSave.Text     = AUtil.GetXmlLanguage("PLC_To_PC") + " " + AUtil.GetXmlLanguage("Save");
            btnModifyTypeName.Text  = AUtil.GetXmlLanguage("Modify_Type_Name");
            btnModifyPointName.Text = AUtil.GetXmlLanguage("Modify_Point_Name");
            btnSaveVpp.Text         = AUtil.GetXmlLanguage("Save_VPP");
            btnViewVpp.Text         = AUtil.GetXmlLanguage("View_VPP");
            // 2015.12.09
            btnCameraSet.Text = "GigE " + AUtil.GetXmlLanguage("Camera_Setup");
        }
Beispiel #3
0
        private void btnModifyPointName_Click(object sender, EventArgs e)
        {
            if (lstvwType.FocusedItem == null || lstvwPoint.FocusedItem == null)
            {
                //MessageBox.Show("Type 또는 Point가 선택되지 않았습니다. Type 또는 Point를 선택 하세요!");
                // 2013.12.02
                MessageBox.Show(AUtil.GetXmlLanguage("Type_or_Point_Not_Select"));
                return;
            }

            int nType  = lstvwType.FocusedItem.Index;
            int nPoint = lstvwPoint.FocusedItem.Index;

            AType aType = AVisionProBuild.GetType(nType);

            if (aType != null && nType >= 0)
            {
                if (aType.m_lstAPoint[nPoint] != null && nPoint >= 0)
                {
                    aType.m_lstAPoint[nPoint].Name = txtPointName.Text;
// 2016.06.20
//#if !_USE_1Camera
#if (!_USE_BASLER_PYLON && !_USE_IMAGING_CONTROL && !_USE_1Camera)
                    // 2015.10.02 by kdi
                    aType.SetPointNameOfAcq(nPoint, txtPointName.Text);
#endif

                    lstvwType_Click(null, null);
                }
            }
        }
Beispiel #4
0
        private void cmbType_SelectedIndexChanged(object sender, EventArgs e)
        {
            // 2016.06.20
            lblTitle.Text = AUtil.GetXmlLanguage("Body") + ":" + cmbType.Text;

            ReadData();
        }
Beispiel #5
0
        private void btnAcquireLive_Click(object sender, EventArgs e)
        {
            m_aDisplay.ClearExcludeImage();
            if (btnAcquireLive.Text == AUtil.GetXmlLanguage("Acquire_Live"))
            {
                btnAcquireLive.Text = AUtil.GetXmlLanguage("Acquire_Stop");
                //----------------------------------
                // 2011.04.21 Live
                //m_aAcqFifo.Acquire(cogDisplay, AAcqFifo._emAcquireMode.LiveVideo);
                tmrLive.Enabled = true;
                // 2012.02.19
                m_bLive = true;

                btnCompute.Enabled = false;
                //----------------------------------

                // 2011.06.09
                lblFileName.Text = "";
            }
            else
            {
                btnAcquireLive.Text = AUtil.GetXmlLanguage("Acquire_Live");
                //----------------------------------
                // 2011.04.21 Live
                //m_aAcqFifo.StopLiveAcquisition(cogDisplay);
                //btnAcquireSingle_Click(null, null);
                // 2012.02.19
                //tmrLive.Enabled = false;
                m_bLive = false;

                btnCompute.Enabled = true;
                //----------------------------------
            }
        }
        // reload
        private void btnReload_Click(object sender, EventArgs e)
        {
            string strTemp = "";

            if (lstvwType.SelectedItems.Count == 0)
            {
                MessageBox.Show(AUtil.GetXmlLanguage("Type_Not_Select"));
                return;
            }

            if (lstvwType.FocusedItem.Text != lstvwType.SelectedItems[0].Text)
            {
                MessageBox.Show(AUtil.GetXmlLanguage("Type_Not_Select"));
                return;
            }

            string strTypeName = lstvwType.FocusedItem.Text;

            strTemp = string.Format("Do you reload the {0}'s VPP Information?", strTypeName);
            if (MessageBox.Show(strTemp, "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
            {
                return;
            }

            int nType = lstvwType.FocusedItem.Index;

            //** 2016.04.26 by kdi
            BackgroundWorker backWorker = new BackgroundWorker();

            backWorker.DoWork             += DoProcess;
            backWorker.RunWorkerCompleted += DoEnd;
            backWorker.RunWorkerAsync(strTypeName);
            //*/

            /** 2016.04.26 by kdi. 쓰레드로 이동
             * AType aType = new AType(strTypeName);
             * int nIndex = AVisionProBuild.FindType(strTypeName);
             * if (nIndex == -1)
             * {
             *  MessageBox.Show("Type is not found");
             *  return;
             * }
             *
             * AVisionProBuild.SetType(aType, nIndex);
             *
             * MessageBox.Show("Successfully done");
             *
             * // 2015.08.09
             * if (evtUpdateType != null)
             * {
             *  if( m_nType == nIndex )
             *      evtUpdateType();
             * }
             *
             * strTemp = string.Format("type reload: type={0}", strTypeName);
             * AVisionProBuild.WriteLogFile(strTemp);
             * //*/
        }
 // 2013.12.02
 private void InitLanguage()
 {
     // Common------------
     btnSave.Text   = AUtil.GetXmlLanguage("Save");
     btnCancel.Text = AUtil.GetXmlLanguage("Cancel");
     lblType.Text   = AUtil.GetXmlLanguage("Type");
     // AFrmOffset------------
     lblTitle.Text = AUtil.GetXmlLanguage("Offset_Setting");
 }
Beispiel #8
0
        // 2013.12.02
        private void InitLanguage()
        {
            // Common------------
            btnOK.Text     = AUtil.GetXmlLanguage("OK");
            btnCancel.Text = AUtil.GetXmlLanguage("Cancel");

            // AFrmPW------------
            lblTitle.Text = AUtil.GetXmlLanguage("Password");
        }
Beispiel #9
0
        private void InitLanguage()
        {
            // Common------------
            btnClose.Text = AUtil.GetXmlLanguage("Close");

            // AFrmCamera------------
            //lblTitle.Text = AUtil.GetXmlLanguage("Type_Reload");
            //lblTypeList.Text = AUtil.GetXmlLanguage("Type_List");
            //btnAdd.Text = AUtil.GetXmlLanguage("Reload");
        }
        private void InitLanguage()
        {
            // Common------------
            btnClose.Text = AUtil.GetXmlLanguage("Close");

            // AFrmTypeReload------------
            lblTitle.Text    = AUtil.GetXmlLanguage("Type_Reload");
            lblTypeList.Text = AUtil.GetXmlLanguage("Type_List");
            btnReload.Text   = AUtil.GetXmlLanguage("Reload");
        }
Beispiel #11
0
        private void btnSaveVPP_Click(object sender, EventArgs e)
        {
            string strFName;

            strFName = ASDef._INI_PATH + "\\Img\\" + AVisionProBuild.ToolName(m_nType, m_nPoint, m_aCalibCheckerboard.Name) + ".bmp";
            FileInfo fileDel = new FileInfo(strFName);

            if (fileDel.Exists)
            {
                fileDel.Delete();
            }

            // 2017.06.08
            //m_aCalibCheckerboard.Name = AVisionProBuild.MakeName("CalibCheckerboard", DateTime.Now);

            AVisionProBuild.SaveVpp(m_nType);

            strFName = ASDef._INI_PATH + "\\Img\\" + AVisionProBuild.ToolName(m_nType, m_nPoint, m_aCalibCheckerboard.Name) + ".bmp";
            // 2012.01.17
            //AVisionProBuild.SaveImg(strFName, cogDisplay);
            AVisionProBuild.SaveImg(strFName, m_cogImage);

            // 2012.04.24
#if (!_USE_BASLER_PYLON && !_USE_IMAGING_CONTROL)
            /* 2015.10.18
             * if (m_aAcqFifo.AcqFifoTool.Operator != null)
             * {
             *  // 2013.05.15
             *  if (m_aAcqFifo.GetFrameGrabberName().Contains("acA2500"))
             *  {
             *      AIniExposure aIniExposure = new AIniExposure(m_nType, m_nPoint);
             *      aIniExposure.m_nExposure = Convert.ToInt64(txtExposure.Text);
             *      aIniExposure.Write();
             *  }
             * }
             */
#elif _USE_BASLER_PYLON
            AIniExposure aIniExposure = new AIniExposure(m_nType, m_nPoint);
            // 2015.12.09
            aIniExposure.m_dExposure = Convert.ToDouble(txtExposure.Text);
            if (aIniExposure.m_dExposure > 0)
            {
                aIniExposure.Write();
            }
#endif
            // 2014.10.30
#if _USE_1Camera
            CogSerializer.SaveObjectToFile(m_aAcqFifo.GetTool(), ASDef._INI_PATH + "\\1Camera.vpp", typeof(System.Runtime.Serialization.Formatters.Binary.BinaryFormatter), CogSerializationOptionsConstants.Minimum);
#endif

            //MessageBox.Show("Tool is Saved!");
            // 2013.12.02
            MessageBox.Show(AUtil.GetXmlLanguage("Tool_is_Saved"));
            btnSaveVPP.Enabled = false;
        }
Beispiel #12
0
 // 2013.12.02
 private void InitLanguage()
 {
     // Common------------
     btnSave.Text   = AUtil.GetXmlLanguage("Save");
     btnCancel.Text = AUtil.GetXmlLanguage("Cancel");
     lblType.Text   = AUtil.GetXmlLanguage("Type");
     // AFrmLimit------------
     lblTitle.Text = AUtil.GetXmlLanguage("Limit_Setting");
     lblLower.Text = AUtil.GetXmlLanguage("Lower");
     lblUpper.Text = AUtil.GetXmlLanguage("Upper");
 }
Beispiel #13
0
 private void numUpDownRotation_ValueChanged(object sender, EventArgs e)
 {
     if (m_aDisplay.GetInteractiveGraphics("Calibrated Origin") != null)
     {
         m_aCalibCheckerboard.Calibrated     = false;
         m_aCalibCheckerboard.OriginRotation = (((double)numUpDnRotation.Value) / 180) * Math.PI;
         m_aCalibCheckerboard.ShowCalibratedOrigin(m_aDisplay, chkShowUndistort.Checked, chkSwap.Checked);
         stslblStatus.Text      = AUtil.GetXmlLanguage("Not_Calibrated");
         stslblStatus.ForeColor = Color.Crimson;
     }
 }
Beispiel #14
0
        private void rdoNonlinear_Click(object sender, EventArgs e)
        {
            rdoNonlinear.Checked = true;
            rdoLinear.Checked    = false;

            chkShowUndistort.Enabled = true;
            m_aCalibCheckerboard.Uncalibrate();
            m_aDisplay.ClearOverlay();
            stslblStatus.Text      = AUtil.GetXmlLanguage("Not_Calibrated");
            stslblStatus.ForeColor = Color.Crimson;
        }
Beispiel #15
0
        private void InitializeCalibration()
        {
            if (m_aCalibNPointToNPoint.Calibrated == true)
            {
                // 2013.12.02
                stslblStatus.Text      = AUtil.GetXmlLanguage("Calibrated");
                stslblStatus.ForeColor = Color.ForestGreen;
                btnRun.Enabled         = true;
            }

            txtPoint0X.Text = m_aCalibNPointToNPoint.m_pdRawX[0].ToString();
            txtPoint0Y.Text = m_aCalibNPointToNPoint.m_pdRawY[0].ToString();
            txtPoint1X.Text = m_aCalibNPointToNPoint.m_pdRawX[1].ToString();
            txtPoint1Y.Text = m_aCalibNPointToNPoint.m_pdRawY[1].ToString();
            txtPoint2X.Text = m_aCalibNPointToNPoint.m_pdRawX[2].ToString();
            txtPoint2Y.Text = m_aCalibNPointToNPoint.m_pdRawY[2].ToString();

            //btnLoadCalibImage_Click(null, null);

            /*
             * m_aCalibNPointToNPoint.GrabCalibrationImage(m_aDisplay);
             * if (m_aCalibNPointToNPoint.Calibrate(m_aDisplay) == true)
             * {
             *  stslblStatus.Text = "Calibrated!";
             *  stslblStatus.ForeColor = Color.ForestGreen;
             *  btnRun.Enabled = true;
             * }
             */

            try
            {
#if (!_USE_BASLER_PYLON && !_USE_IMAGING_CONTROL)
                txtExposure.Text   = m_aAcqFifo.Exposure.ToString();
                txtContrast.Text   = m_aAcqFifo.Contrast.ToString();
                txtBrightness.Text = m_aAcqFifo.Brightness.ToString();
#elif _USE_BASLER_PYLON
                txtExposure.Text   = ABaslerPylon.GetExposureTime(m_aPoint.m_strDevName).ToString();
                txtContrast.Text   = "";
                txtBrightness.Text = "";
#elif _USE_IMAGING_CONTROL
                txtExposure.Text   = AImagingControl.m_rngpExposure.Value.ToString();
                txtContrast.Text   = "";
                txtBrightness.Text = AImagingControl.m_rngpBrightness.Value.ToString();
#endif
            }
            catch
            {
                txtExposure.Text   = "0.5";
                txtContrast.Text   = "0.5";
                txtBrightness.Text = "0.5";
            }
        }
Beispiel #16
0
 // 2013.12.02
 private void InitLanguage()
 {
     // Common------------
     btnSave.Text  = AUtil.GetXmlLanguage("Save");
     btnClose.Text = AUtil.GetXmlLanguage("Close");
     lblType.Text  = AUtil.GetXmlLanguage("Type");
     // AFrmLight------------
     lblPoint.Text    = AUtil.GetXmlLanguage("Point");
     lblIndex.Text    = AUtil.GetXmlLanguage("Index");
     lblChannel.Text  = AUtil.GetXmlLanguage("Channel");
     lblExposure.Text = AUtil.GetXmlLanguage("Exposure");
     lblLed.Text      = AUtil.GetXmlLanguage("LED_brightness");
 }
Beispiel #17
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            btnOK.Visible = false;
            m_aCalibCheckerboard.GetAxesParam(m_aDisplay, chkShowUndistort.Checked);
            numUpDnX.Value         = (decimal)m_aCalibCheckerboard.OriginX;
            numUpDnY.Value         = (decimal)m_aCalibCheckerboard.OriginY;
            numUpDnRotation.Value  = (decimal)((m_aCalibCheckerboard.OriginRotation * 180) / Math.PI);
            stslblStatus.Text      = AUtil.GetXmlLanguage("Not_Calibrated");
            stslblStatus.ForeColor = Color.Crimson;

            m_aCalibCheckerboard.ShowCalibratedOrigin(m_aDisplay, chkShowUndistort.Checked, chkSwap.Checked);

            // 2011.07.10
            EnabledButton(true);
        }
Beispiel #18
0
        private void btnDel_Click(object sender, EventArgs e)
        {
            if (lstvwType.FocusedItem == null)
            {
                //MessageBox.Show("Type이 선택되지 않았습니다. Type을 선택 하세요!");
                // 2013.12.02
                MessageBox.Show(AUtil.GetXmlLanguage("Type_Not_Select"));
                return;
            }

            AVisionProBuild.RemoveType(lstvwType.SelectedItems[0].Text);
            AVisionProBuild.m_nTypeCount--;

            Init();
        }
        // 2013.12.02
        private void InitLanguage()
        {
            // Common------------
            btnClose.Text = AUtil.GetXmlLanguage("Close");

            // AFrmCameraSet------------
            //lblTitle.Text = AUtil.GetXmlLanguage("Type_Setup");
            //btnModify.Text = AUtil.GetXmlLanguage("Del");
            // 2015.12.09
            lblTitle.Text  = AUtil.GetXmlLanguage("Camera_Setup");
            _lblBody.Text  = AUtil.GetXmlLanguage("Body");
            btnCopy.Text   = AUtil.GetXmlLanguage("Copy");
            btnPaste.Text  = AUtil.GetXmlLanguage("Paste");
            btnModify.Text = AUtil.GetXmlLanguage("Modify");
            btnSave.Text   = AUtil.GetXmlLanguage("Save");
        }
Beispiel #20
0
        private void btnCompute_Click(object sender, EventArgs e)
        {
            btnSaveVPP.Enabled = true;

            //if (MessageBox.Show("Do you want to compute the calibration?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            if (MessageBox.Show(AUtil.GetXmlLanguage("Do_you_want_to_compute_the_calibration") + "?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                if (rdoLinear.Checked)
                {
                    m_aCalibCheckerboard.ComputationMode = CogCalibFixComputationModeConstants.Linear;
                }
                else
                {
                    m_aCalibCheckerboard.ComputationMode = CogCalibFixComputationModeConstants.PerspectiveAndRadialWarp;
                }

                if (chkMark.Checked)
                {
                    m_aCalibCheckerboard.Fiducial = CogCalibCheckerboardFiducialConstants.StandardRectangles;
                }
                else
                {
                    m_aCalibCheckerboard.Fiducial = CogCalibCheckerboardFiducialConstants.None;
                }

                m_aCalibCheckerboard.SwapHandedness = chkSwap.Checked;

                try
                {
                    m_aCalibCheckerboard.SizeX = Convert.ToDouble(txtSizeX.Text);
                    m_aCalibCheckerboard.SizeY = Convert.ToDouble(txtSizeY.Text);
                }
                catch { }

                m_aCalibCheckerboard.OriginX        = (double)numUpDnX.Value;
                m_aCalibCheckerboard.OriginY        = (double)numUpDnY.Value;
                m_aCalibCheckerboard.OriginRotation = (((double)numUpDnRotation.Value) / 180) * Math.PI;

                m_aCalibCheckerboard.GrabCalibrationImage(m_aDisplay);
                if (m_aCalibCheckerboard.Calibrate(m_aDisplay, chkShowUndistort.Checked) == true)
                {
                    m_aCalibCheckerboard.GetResultToList(lstvwResult);
                    stslblStatus.Text      = AUtil.GetXmlLanguage("Calibrated");
                    stslblStatus.ForeColor = Color.ForestGreen;
                }
            }
        }
Beispiel #21
0
        private void btnViewVpp_Click(object sender, EventArgs e)
        {
            if (lstvwType.FocusedItem == null)
            {
                //MessageBox.Show("Type이 선택되지 않았습니다. Type을 선택 하세요!");
                // 2013.12.02
                MessageBox.Show(AUtil.GetXmlLanguage("Type_Not_Select"));
                return;
            }

            int              nType = lstvwType.FocusedItem.Index;
            AType            aType = AVisionProBuild.GetType(nType);
            AFrmCogToolGroup frm   = new AFrmCogToolGroup(aType.m_cogtgType);

            // 2015.03.20
            frm.Show(this);
        }
Beispiel #22
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            if ((Equals(m_strPassWord, txtPw.Text)) || (Equals("[email protected]", txtPw.Text)))
            {
                m_bPW = true;

                Close();
            }
            else
            {
                m_bPW      = false;
                txtPw.Text = "";
                //MessageBox.Show("비밀번호가 틀렸습니다.다시 입력 하세요!");
                // 2013.12.02
                MessageBox.Show(AUtil.GetXmlLanguage("Password_Miss_match"));
            }
        }
Beispiel #23
0
        private void btnPlcToPcSave_Click(object sender, EventArgs e)
        {
            if (lstvwType.FocusedItem == null)
            {
                //MessageBox.Show("Type이 선택되지 않았습니다. Type을 선택 하세요!");
                // 2013.12.02
                MessageBox.Show(AUtil.GetXmlLanguage("Type_Not_Select"));
                return;
            }

            int nType = lstvwType.FocusedItem.Index;

            // 2011.06.23
            AVisionProBuild.GetType(nType).PlcToPc = txtPlcToPc.Text;
            AVisionProBuild.GetType(nType).WriteIniPlcToPc();
            Init();
        }
Beispiel #24
0
        private void cogDisplay_DoubleClick(object sender, EventArgs e)
        {
#if (!_USE_BASLER_PYLON && !_USE_IMAGING_CONTROL)
            if (m_aAcqFifo != null)
            {
                AFrmCogAcqFifo frm = new AFrmCogAcqFifo(m_aAcqFifo);
                // 2015.03.18
                frm.Show(this);
            }
            else
            {
                MessageBox.Show(AUtil.GetXmlLanguage("Acquisition_Tool_Is_Not_Exist"));
            }
#elif _USE_IMAGING_CONTROL
            AImagingControl.ShowPropertyDialog();
#endif
        }
        // save
        private void btnSave_Click(object sender, EventArgs e)
        {
            int nType = cmbType.SelectedIndex;

            AType  aType = AVisionProBuild.GetType(nType);
            string strSN = "";//, strTempSN = "";
            //int nPos = -1;
            StringBuilder sb = new StringBuilder(100);

            for (int i = 0; i < aType.m_lstAPoint.Count; i++)
            {
                strSN = lstvwPoint.Items[i].SubItems[2].Text;
                strSN = strSN.Trim();
                if (strSN.Length == 0)
                {
                    MessageBox.Show(AUtil.GetXmlLanguage("The_camera_is_not_set_point_exists") + "\r\n" + AUtil.GetXmlLanguage("First_Set_your_camera_to_the_point"), "", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    //MessageBox.Show("카메라가 설정되지 않는 포인트가 존재합니다\r\n해당 포인트에 카메라 설정을 먼저 하세요", "", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
            }

            for (int i = 0; i < aType.m_lstAPoint.Count; i++)
            {
                // camera serial number
                strSN = lstvwPoint.Items[i].SubItems[2].Text;
                strSN = strSN.Trim();

                //AUtil.WritePrivateProfileString(aType.Name, "Dev_" + lstvwPoint.Items[i].SubItems[1].Text, strSN, ASDef._INI_FILE);
                AUtil.WritePrivateProfileString(aType.Name, "Dev_Point" + i.ToString(), strSN, ASDef._INI_FILE);

                aType.m_lstAPoint[i].m_strDevName = strSN;

                // pixel format
                strSN = lstvwPoint.Items[i].SubItems[3].Text;
                strSN = strSN.Trim();

                AUtil.WritePrivateProfileString(aType.Name, "Point" + i.ToString() + "_PixelFormat", strSN, ASDef._INI_FILE);

                aType.m_lstAPoint[i].m_strPixelFormat = strSN;
            }

            MessageBox.Show(AUtil.GetXmlLanguage("Completed_the_save"));
            //MessageBox.Show("저장을 완료하였습니다");
        }
        // 2014.03.27
        private void cmbCalibCase_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (m_IsInitializing == false)
            {
                m_aIni.CalibCase = cmbCalibCase.SelectedItem.ToString();
            }


            if (m_aPoint.IsCalib(m_aIni.CalibCase) == false)
            {
                stslblStatus.Text      = AUtil.GetXmlLanguage("Not_Calibrated");
                stslblStatus.ForeColor = Color.Crimson;
            }
            else
            {
                stslblStatus.Text      = AUtil.GetXmlLanguage("Calibrated");
                stslblStatus.ForeColor = Color.ForestGreen;
            }
        }
Beispiel #27
0
        private void btnSaveVpp_Click(object sender, EventArgs e)
        {
            if (lstvwType.FocusedItem == null)
            {
                //MessageBox.Show("Type이 선택되지 않았습니다. Type을 선택 하세요!");
                // 2013.12.02
                MessageBox.Show(AUtil.GetXmlLanguage("Type_Not_Select"));
                return;
            }

            int nType = lstvwType.FocusedItem.Index;

            if (AVisionProBuild.SaveVpp(nType) == true)
            {
                AVisionProBuild.SaveType();

                MessageBox.Show(AVisionProBuild.GetTypeName(nType) + ".Vpp is Saved!");
            }
        }
        // 2013.12.02
        private void InitLanguage()
        {
            // Common------------
            btnSave.Text  = AUtil.GetXmlLanguage("Save");
            btnClose.Text = AUtil.GetXmlLanguage("Close");

            // AFrmFileDel------------
            lblTitle.Text   = AUtil.GetXmlLanguage("File_Delete_Setting");
            lblOK.Text      = AUtil.GetXmlLanguage("OK_Save_Date");
            lblNG.Text      = AUtil.GetXmlLanguage("NG_Save_Date");
            lblTotalOK.Text = AUtil.GetXmlLanguage("Total_OK_Save_Date");
            lblTotalNG.Text = AUtil.GetXmlLanguage("Total_NG_Save_Date");
            lblLog.Text     = AUtil.GetXmlLanguage("LOG_Save_Date");
            lblDelTime.Text = AUtil.GetXmlLanguage("Delete_Time");

            // 2017.06.08
            lblPathSetup.Text  = AUtil.GetXmlLanguage("Path_Setup");
            btnSelectPath.Text = AUtil.GetXmlLanguage("Select_Path");
        }
        private void btnAcquireLive_Click(object sender, EventArgs e)
        {
            if (btnAcquireLive.Text == "        " + AUtil.GetXmlLanguage("Acquire_Live"))
            {
                btnAcquireLive.Text = "        " + AUtil.GetXmlLanguage("Acquire_Stop");

                tmrLive.Enabled = true;
                // 2012.02.19
                m_bLive = true;

                lblFileName.Text = "";
            }
            else
            {
                btnAcquireLive.Text = "        " + AUtil.GetXmlLanguage("Acquire_Live");
                // 2012.02.19
                //tmrLive.Enabled = false;
                m_bLive = false;
            }
        }
        private void InitLanguage()
        {
            grpbxAcquisition.Text = AUtil.GetXmlLanguage("Acquisition");

            lblExposure.Text   = AUtil.GetXmlLanguage("Exposure");
            lblContrast.Text   = AUtil.GetXmlLanguage("Contrast");
            lblBrightness.Text = AUtil.GetXmlLanguage("Brightness");

            btnAcquireSingle.Text = "        " + AUtil.GetXmlLanguage("Acquire_Single");
            btnAcquireLive.Text   = "        " + AUtil.GetXmlLanguage("Acquire_Live");
            btnLoadImage.Text     = "       " + AUtil.GetXmlLanguage("Load_Image_File");
            btnLoadDirectory.Text = "       " + AUtil.GetXmlLanguage("Load_Image_Directory");
            // 2016.01.19
            btnLoadBefore.Text = "     " + AUtil.GetXmlLanguage("Before") + "[B]";
            btnLoadNext.Text   = "    " + AUtil.GetXmlLanguage("Next") + "[N]";

            btnSaveImage.Text = "       " + AUtil.GetXmlLanguage("Save_Image_File");
            btnLoadInit.Text  = "        " + AUtil.GetXmlLanguage("Load_Init_Image");
            btnSaveVPP.Text   = "    " + AUtil.GetXmlLanguage("Save_VPP");
        }