개정판 b74a9c91
macro기능 추가
Change-Id: I6e80960cf3ebf71f316f9d18cd890e90c827c40b
KCOM/Events/Implementation/TopMenuEvent.cs | ||
---|---|---|
1817 | 1817 |
|
1818 | 1818 |
if (instanceToggle.IsChecked != false) |
1819 | 1819 |
{ |
1820 |
string param = instanceToggle.CommandParameter.ToString(); |
|
1821 |
string MacroIndex = ""; |
|
1822 |
|
|
1823 |
if (param.StartsWith("MACRO")) |
|
1824 |
{ |
|
1825 |
param = "MACRO"; |
|
1826 |
MacroIndex = param.Replace("MACRO;",""); |
|
1827 |
|
|
1828 |
//Common.ViewerDataModel.Instance.MacroItems = MacroHelper.LoadMacroItems(MacroIndex); |
|
1829 |
//var items = MacroHelper.TopMenuItems(); |
|
1830 |
|
|
1831 |
Common.ViewerDataModel.Instance.MacroItems = new List<MacroItem> |
|
1832 |
{ |
|
1833 |
new MacroItem |
|
1834 |
{ |
|
1835 |
Desc = "Cloud Rectangle", |
|
1836 |
ControlType = MarkupToPDF.Controls.Common.ControlType.RectCloud |
|
1837 |
}, |
|
1838 |
new MacroItem |
|
1839 |
{ |
|
1840 |
Desc = "Arrow TextBox", |
|
1841 |
ControlType = MarkupToPDF.Controls.Common.ControlType.ArrowTextBorderControl |
|
1842 |
} |
|
1843 |
}; |
|
1844 |
} |
|
1845 |
|
|
1820 | 1846 |
#region 컨트롤이 체크되었다면 |
1821 |
switch (instanceToggle.CommandParameter.ToString())
|
|
1847 |
switch (param)
|
|
1822 | 1848 |
{ |
1823 | 1849 |
#region Line |
1824 | 1850 |
case "Line": |
... | ... | |
2112 | 2138 |
instanceMain.dzMainMenu.txtBatch.Text = "Place Mark"; |
2113 | 2139 |
break; |
2114 | 2140 |
#endregion |
2141 |
|
|
2142 |
#region MACRO -MACRO1 |
|
2143 |
case "MACRO": |
|
2144 |
Common.ViewerDataModel.Instance.SelectedControl = "MACRO"; |
|
2145 |
Common.ViewerDataModel.Instance.ControlTag = instanceMain.dzMainMenu._ViewInfo.UserID; //사번 |
|
2146 |
|
|
2147 |
MacroHelper.MacroAction(); |
|
2148 |
|
|
2149 |
break; |
|
2150 |
#endregion |
|
2151 |
|
|
2115 | 2152 |
#region Copy |
2116 | 2153 |
case "Copy": |
2117 | 2154 |
Copy_Start(); |
내보내기 Unified diff