프로젝트

일반

사용자정보

개정판 fc4e50f2

IDfc4e50f2c372b4eb5d26cf2bf308fb93614e547c
상위 b74a9c91
하위 6c45db59

김태성이(가) 약 4년 전에 추가함

macro 버튼 수정

Change-Id: Ibb11d25921cfe200e11b7eddc08265c84087e374

차이점 보기:

KCOM/Extensions/MacroHelper.cs
55 55
            return result;
56 56
        }
57 57

  
58
        /// <summary>
59
        /// macro 초기화
60
        /// </summary>
61
        public static void Clear()
62
        {
63
            var menu = ViewerDataModel.Instance.SystemMain.dzMainMenu;
64

  
65
            Common.ViewerDataModel.Instance.IsMacroCommand = false;
66
            Common.ViewerDataModel.Instance.MacroCommandIndex = 0;
67
            Common.ViewerDataModel.Instance.MacroItems.ForEach(x =>
68
            {
69
                x.IsCurrent = false;
70
                x.IsDraw = false;
71
            });
72

  
73
            menu.controlType = MarkupToPDF.Controls.Common.ControlType.None;
74
            menu.txtBatch.Visibility = System.Windows.Visibility.Collapsed;
75
            menu.mouseHandlingMode = IKCOM.MouseHandlingMode.None;
76
            var TogList = menu.Parent.ChildrenOfType<Telerik.Windows.Controls.RadToggleButton>();
77

  
78
            foreach (var tog in TogList)
79
            {
80
                tog.IsChecked = false;
81
            }
82
        }
83

  
58 84
        public static void MacroAction()
59 85
        {
60 86
            var menu = ViewerDataModel.Instance.SystemMain.dzMainMenu;
......
95 121
            }
96 122
            else
97 123
            {
98
                Common.ViewerDataModel.Instance.IsMacroCommand = false;
99
                Common.ViewerDataModel.Instance.MacroCommandIndex = 0;
100
                Common.ViewerDataModel.Instance.MacroItems.ForEach(x =>
101
                {
102
                    x.IsCurrent = false;
103
                    x.IsDraw = false;
104
                });
105

  
106
                menu.controlType = MarkupToPDF.Controls.Common.ControlType.None;
107
                menu.txtBatch.Visibility = System.Windows.Visibility.Collapsed;
108
                menu.mouseHandlingMode = IKCOM.MouseHandlingMode.None;
109
                var TogList = menu.Parent.ChildrenOfType<Telerik.Windows.Controls.RadToggleButton>();
110

  
111
                foreach (var tog in TogList)
112
                {
113
                    tog.IsChecked = false;
114
                }
124
                Clear();
115 125
            }
116 126

  
117 127
        }

내보내기 Unified diff

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