Esempio n. 1
0
        private void Section_OnSectionEvent(object sender, Event.EventManager.SectionEventArgs e)
        {
            switch (e.EventType)
            {
            case Manager.SectionManager.EventTypes.ADD:
                break;

            case Manager.SectionManager.EventTypes.DELETE:
                DrawingCtrl.ClearData();
                break;

            case Manager.SectionManager.EventTypes.CLEAR:
                DrawingCtrl.ClearData();
                break;

            case Manager.SectionManager.EventTypes.SELECT:
                break;

            case Manager.SectionManager.EventTypes.TRANSFORM:
                DrawLine();
                break;

            case Manager.SectionManager.EventTypes.RESIZED:
                DrawLine();
                break;

            default:
                break;
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 단면 이벤트
        /// </summary>
        /// <param name="sender">sender</param>
        /// <param name="e">Event Args</param>
        private void Section_OnSectionEvent(object sender, Event.EventManager.SectionEventArgs e)
        {
            switch (e.EventType)
            {
            case Manager.SectionManager.EventTypes.ADD:
                //생성 이벤트
                break;

            case Manager.SectionManager.EventTypes.DELETE:
                //삭제 이벤트
                break;

            case Manager.SectionManager.EventTypes.DELETE_ALL:
                //전체 삭제 이벤트
                break;

            case Manager.SectionManager.EventTypes.SELECT:
                //선택 이벤트
                break;

            case Manager.SectionManager.EventTypes.TRANSFORM:
                //이동 및 회전 이벤트
                break;

            default:
                break;
            }

            // 단면 정보 없음
            if (e.Section == null)
            {
                return;
            }

            switch (e.Section.SectionType)
            {
            case Manager.SectionManager.SectionTypes.SECTION:
                // 단면
                break;

            case Manager.SectionManager.SectionTypes.SECTION_BOX:
                // 상자
                break;

            case Manager.SectionManager.SectionTypes.SECTION_INBOX:
                // 인박스
                break;

            default:
                break;
            }
        }