개정판 f324a940
issue #1130: cad 관련 dll move 및 프로젝트에서 삭제.
Change-Id: I97ea1f897fa36245ab031c3f11da391275252dc4
KCOM/Events/Implementation/TopMenuEvent.cs | ||
---|---|---|
2279 | 2279 |
(Application.Current.MainWindow as MainWindow).dzMainMenu.mouseHandlingMode = IKCOM.MouseHandlingMode.Capture; |
2280 | 2280 |
break; |
2281 | 2281 |
#endregion |
2282 |
#region Cad |
|
2283 |
case "Inside": |
|
2284 |
//instanceMain.dzMainMenu.mouseHandlingMode = IKCOM.MouseHandlingMode.Drawing; |
|
2285 |
//instanceMain.dzMainMenu.inkDrawingCanvas.IsEnabled = false; |
|
2286 |
Common.ViewerDataModel.Instance.SelectedControl = "InsideWhite"; |
|
2287 |
instanceMain.dzMainMenu.controlType = MarkupToPDF.Controls.Common.ControlType.InsideWhite; |
|
2288 |
break; |
|
2289 |
case "Overlap": |
|
2290 |
//instanceMain.dzMainMenu.mouseHandlingMode = IKCOM.MouseHandlingMode.Drawing; |
|
2291 |
//instanceMain.dzMainMenu.inkDrawingCanvas.IsEnabled = false; |
|
2292 |
Common.ViewerDataModel.Instance.SelectedControl = "OverlapWhite"; |
|
2293 |
instanceMain.dzMainMenu.controlType = MarkupToPDF.Controls.Common.ControlType.OverlapWhite; |
|
2294 |
break; |
|
2295 |
case "Clip": |
|
2296 |
//instanceMain.dzMainMenu.mouseHandlingMode = IKCOM.MouseHandlingMode.Drawing; |
|
2297 |
//instanceMain.dzMainMenu.inkDrawingCanvas.IsEnabled = false; |
|
2298 |
Common.ViewerDataModel.Instance.SelectedControl = "ClipWhite"; |
|
2299 |
instanceMain.dzMainMenu.controlType = MarkupToPDF.Controls.Common.ControlType.ClipWhite; |
|
2300 |
break; |
|
2301 |
case "CadExport": |
|
2302 |
if (isClosed) |
|
2303 |
{ |
|
2304 |
//토글 및 마우스 상태 초기화 |
|
2305 |
var toggleList = this.Parent.ChildrenOfType<RadRibbonToggleButton>(); |
|
2306 |
foreach (var togle in toggleList) |
|
2307 |
{ |
|
2308 |
togle.IsChecked = false; |
|
2309 |
} |
|
2310 |
this.ParentOfType<MainWindow>().dzMainMenu.mouseHandlingMode = IKCOM.MouseHandlingMode.None; |
|
2311 |
|
|
2312 |
isClosed = false; |
|
2313 |
//Control 파일 먼저 생성 |
|
2314 |
CollapsedButton_Click(); |
|
2315 |
CadViewer check = new CadViewer(); |
|
2316 |
check.WindowStartupLocation = WindowStartupLocation.CenterScreen; |
|
2317 |
check.Title = "Export Viewer"; |
|
2318 |
//check.Topmost = true; |
|
2319 |
check.Show(); |
|
2320 |
check.Closed += Check_Closed; |
|
2321 |
instanceToggle.IsChecked = false; |
|
2322 |
} |
|
2323 |
break; |
|
2324 |
case "CadViewer": |
|
2325 |
if (isClosed) |
|
2326 |
{ |
|
2327 |
//토글 및 마우스 상태 초기화 |
|
2328 |
var toggleList = this.Parent.ChildrenOfType<RadRibbonToggleButton>(); |
|
2329 |
foreach (var togle in toggleList) |
|
2330 |
{ |
|
2331 |
togle.IsChecked = false; |
|
2332 |
} |
|
2333 |
this.ParentOfType<MainWindow>().dzMainMenu.mouseHandlingMode = IKCOM.MouseHandlingMode.None; |
|
2334 |
|
|
2335 |
isClosed = false; |
|
2336 |
CadResultViewer check = new CadResultViewer(); |
|
2337 |
check.WindowStartupLocation = WindowStartupLocation.CenterScreen; |
|
2338 |
check.Title = "Viewer"; |
|
2339 |
check.Show(); |
|
2340 |
|
|
2341 |
check.Closed += Check_Closed; |
|
2342 |
|
|
2343 |
} |
|
2344 |
break; |
|
2345 |
#endregion |
|
2282 |
//#region Cad
|
|
2283 |
//case "Inside":
|
|
2284 |
// //instanceMain.dzMainMenu.mouseHandlingMode = IKCOM.MouseHandlingMode.Drawing;
|
|
2285 |
// //instanceMain.dzMainMenu.inkDrawingCanvas.IsEnabled = false;
|
|
2286 |
// Common.ViewerDataModel.Instance.SelectedControl = "InsideWhite";
|
|
2287 |
// instanceMain.dzMainMenu.controlType = MarkupToPDF.Controls.Common.ControlType.InsideWhite;
|
|
2288 |
// break;
|
|
2289 |
//case "Overlap":
|
|
2290 |
// //instanceMain.dzMainMenu.mouseHandlingMode = IKCOM.MouseHandlingMode.Drawing;
|
|
2291 |
// //instanceMain.dzMainMenu.inkDrawingCanvas.IsEnabled = false;
|
|
2292 |
// Common.ViewerDataModel.Instance.SelectedControl = "OverlapWhite";
|
|
2293 |
// instanceMain.dzMainMenu.controlType = MarkupToPDF.Controls.Common.ControlType.OverlapWhite;
|
|
2294 |
// break;
|
|
2295 |
//case "Clip":
|
|
2296 |
// //instanceMain.dzMainMenu.mouseHandlingMode = IKCOM.MouseHandlingMode.Drawing;
|
|
2297 |
// //instanceMain.dzMainMenu.inkDrawingCanvas.IsEnabled = false;
|
|
2298 |
// Common.ViewerDataModel.Instance.SelectedControl = "ClipWhite";
|
|
2299 |
// instanceMain.dzMainMenu.controlType = MarkupToPDF.Controls.Common.ControlType.ClipWhite;
|
|
2300 |
// break;
|
|
2301 |
//case "CadExport":
|
|
2302 |
// if (isClosed)
|
|
2303 |
// {
|
|
2304 |
// //토글 및 마우스 상태 초기화
|
|
2305 |
// var toggleList = this.Parent.ChildrenOfType<RadRibbonToggleButton>();
|
|
2306 |
// foreach (var togle in toggleList)
|
|
2307 |
// {
|
|
2308 |
// togle.IsChecked = false;
|
|
2309 |
// }
|
|
2310 |
// this.ParentOfType<MainWindow>().dzMainMenu.mouseHandlingMode = IKCOM.MouseHandlingMode.None;
|
|
2311 |
|
|
2312 |
// isClosed = false;
|
|
2313 |
// //Control 파일 먼저 생성
|
|
2314 |
// CollapsedButton_Click();
|
|
2315 |
// CadViewer check = new CadViewer();
|
|
2316 |
// check.WindowStartupLocation = WindowStartupLocation.CenterScreen;
|
|
2317 |
// check.Title = "Export Viewer";
|
|
2318 |
// //check.Topmost = true;
|
|
2319 |
// check.Show();
|
|
2320 |
// check.Closed += Check_Closed;
|
|
2321 |
// instanceToggle.IsChecked = false;
|
|
2322 |
// }
|
|
2323 |
// break;
|
|
2324 |
//case "CadViewer":
|
|
2325 |
// if (isClosed)
|
|
2326 |
// {
|
|
2327 |
// //토글 및 마우스 상태 초기화
|
|
2328 |
// var toggleList = this.Parent.ChildrenOfType<RadRibbonToggleButton>();
|
|
2329 |
// foreach (var togle in toggleList)
|
|
2330 |
// {
|
|
2331 |
// togle.IsChecked = false;
|
|
2332 |
// }
|
|
2333 |
// this.ParentOfType<MainWindow>().dzMainMenu.mouseHandlingMode = IKCOM.MouseHandlingMode.None;
|
|
2334 |
|
|
2335 |
// isClosed = false;
|
|
2336 |
// CadResultViewer check = new CadResultViewer();
|
|
2337 |
// check.WindowStartupLocation = WindowStartupLocation.CenterScreen;
|
|
2338 |
// check.Title = "Viewer";
|
|
2339 |
// check.Show();
|
|
2340 |
|
|
2341 |
// check.Closed += Check_Closed;
|
|
2342 |
|
|
2343 |
// }
|
|
2344 |
// break;
|
|
2345 |
//#endregion
|
|
2346 | 2346 |
default: |
2347 | 2347 |
break; |
2348 | 2348 |
} |
내보내기 Unified diff