コード例 #1
0
        private void BtnTitleFindLineSettingBottom_Click(object sender, EventArgs e)
        {
            var pDocument = CDocument.GetDocument;

            do
            {
                CUserInformation objUserInformation = pDocument.GetUserInformation();
                // 마스터만 가능하도록
                if (CDefine.enumUserAuthorityLevel.USER_AUTHORITY_LEVEL_MASTER != objUserInformation.m_eAuthorityLevel)
                {
                    break;
                }

                // ocx 넣기 전에 이미지 변경해줌
                CDialogCogFindLine obj = new CDialogCogFindLine(m_objFindLineToolBottom);
                obj.ShowDialog();
            } while(false);
            Reload();
        }
コード例 #2
0
        //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        //생성 :
        //추가 :
        //목적 : ocx
        //설명 :
        //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        private void BtnTitleFindLineSetting_Click(object sender, EventArgs e)
        {
            var pDocument = CDocument.GetDocument;

            do
            {
                CUserInformation objUserInformation = pDocument.GetUserInformation();
                // 마스터만 가능하도록
                if (CDefine.enumUserAuthorityLevel.USER_AUTHORITY_LEVEL_MASTER != objUserInformation.m_eAuthorityLevel)
                {
                    break;
                }

                // ocx 넣기 전에 이미지 변경해줌
                CogImage8Grey objOriginImage = m_objFindLineTool.InputImage;
                m_objFindLineTool.InputImage = cogDisplayRunImage.Image as CogImage8Grey;
                CDialogCogFindLine obj = new CDialogCogFindLine(m_objFindLineTool);
                obj.ShowDialog();
                // 빠져나오면서 원본 이미지 집어넣음
                m_objFindLineTool.InputImage = objOriginImage;
            } while(false);
        }