개정판 77cdac33
벽산 수정 후 백업
Change-Id: I8e3eb48f615478a49efa0ab4014a8ef17d273d0a
KCOM/Events/Implementation/TopMenuEvent.cs | ||
---|---|---|
314 | 314 |
return; |
315 | 315 |
} |
316 | 316 |
|
317 |
var result = await Dispatcher.InvokeAsync<bool>(()=> |
|
318 |
{ |
|
317 |
//var result = await Dispatcher.InvokeAsync<bool>(()=>
|
|
318 |
//{
|
|
319 | 319 |
this.ParentOfType<MainWindow>().dzMainMenu.busyIndicator.IsBusy = true; |
320 | 320 |
|
321 | 321 |
_SaveEvent(sender, e); |
322 | 322 |
|
323 | 323 |
mianMenu.busyIndicator.IsBusy = false; |
324 |
return true; |
|
325 |
}); |
|
324 |
|
|
325 |
//});
|
|
326 | 326 |
|
327 | 327 |
//System.Threading.Tasks.Task SaveTask = System.Threading.Tasks.Task.Factory.StartNew(() => |
328 | 328 |
//{ |
... | ... | |
404 | 404 |
|
405 | 405 |
return result; |
406 | 406 |
} |
407 |
public async Task<bool> SaveEventAsync() |
|
408 |
{ |
|
409 |
bool result = false; |
|
410 |
|
|
411 |
var mainMenu = this.ParentOfType<MainWindow>().dzMainMenu; |
|
412 |
try |
|
413 |
{ |
|
414 |
mainMenu.ConvertInkControlToPolygon(); |
|
415 |
|
|
416 |
SelectionSet.Instance.UnSelect(this.ParentOfType<MainWindow>().dzMainMenu); |
|
417 |
// update mylist and gridview |
|
418 |
mainMenu.UpdateMyMarkupList(); |
|
419 |
|
|
420 |
if (mainMenu.gridViewMarkup.SelectedItems.Count == 0 && mainMenu.gridViewMarkup.Items.Count > 0) |
|
421 |
{ |
|
422 |
this.ParentOfType<MainWindow>().DialogMessage_Alert("Please Select Your Comment List Item", "Alert"); |
|
423 |
} |
|
424 |
else |
|
425 |
{ |
|
426 |
foreach (var item in mainMenu.gridViewMarkup.SelectedItems) |
|
427 |
{ |
|
428 |
if ((item as IKCOM.MarkupInfoItem).UserID == App.ViewInfo.UserID) |
|
429 |
{ |
|
430 |
/// 저장 서비스 호출 |
|
431 |
result = await this.ExecuteSaveCommand(mainMenu); |
|
432 |
|
|
433 |
ViewerDataModel.Instance._markupInfoList.Where(data => data.MarkupInfoID == (item as IKCOM.MarkupInfoItem).MarkupInfoID).FirstOrDefault().UpdateTime = DateTime.Now; |
|
434 |
} |
|
435 |
} |
|
436 |
} |
|
437 |
|
|
438 |
mainMenu.SetCommentPages(null); |
|
439 |
|
|
440 |
ViewerDataModel.Instance.UndoDataList.Clear(); |
|
441 |
result = true; |
|
442 |
} |
|
443 |
catch (Exception ex) |
|
444 |
{ |
|
445 |
System.Diagnostics.Debug.WriteLine("_SaveEvent Error : " + ex.ToString()); |
|
446 |
} |
|
447 |
finally |
|
448 |
{ |
|
449 |
/* |
|
450 |
/// delete markup information when 코멘트가 없을 경우 |
|
451 |
if (ViewerDataModel.Instance.MyMarkupList.Count == 0) |
|
452 |
{ |
|
453 |
foreach (var item in menu.gridViewMarkup.SelectedItems) |
|
454 |
{ |
|
455 |
if ((item as IKCOM.MarkupInfoItem).UserID == App.ViewInfo.UserID) |
|
456 |
{ |
|
457 |
//this.ParentOfType<MainWindow>().dzMainMenu.DeleteItem((item as IKCOM.MarkupInfoItem)); |
|
458 |
} |
|
459 |
} |
|
460 |
} |
|
461 |
*/ |
|
462 |
} |
|
463 |
|
|
464 |
return result; |
|
465 |
} |
|
407 | 466 |
|
408 | 467 |
/// <summary> |
409 | 468 |
/// call save command |
내보내기 Unified diff