개정판 17202508
issue #923 MarkupInfo 삭제 시 메시지 창을 띄워 사용자에게 확인을 받도록 수정
Change-Id: I99565d56ee5723b2740e7ca846268366a0ef4a07
KCOM/Views/MainMenu.xaml.cs | ||
---|---|---|
366 | 366 |
/// <param name="e"></param> |
367 | 367 |
public void DeleteCommentEvent(object sender, RoutedEventArgs e) |
368 | 368 |
{ |
369 |
if (MessageBox.Show("정말 삭제 하시겠습니까?", "MARKUS", MessageBoxButton.OKCancel) == MessageBoxResult.OK) |
|
369 |
var box = new TextBlock(); |
|
370 |
box.MinWidth = 400; |
|
371 |
box.FontSize = 11; |
|
372 |
box.Text = "정말 삭제 하시겠습니까?"; |
|
373 |
box.TextWrapping = System.Windows.TextWrapping.Wrap; |
|
374 |
DialogParameters parameters = new DialogParameters() |
|
370 | 375 |
{ |
371 |
//선택된 어도너가 있을시 삭제가 되지 않음 |
|
372 |
SelectionSet.Instance.UnSelect(this); |
|
376 |
Owner = Application.Current.MainWindow, |
|
377 |
Content = box, |
|
378 |
Header = "Confirm", |
|
379 |
Theme = new VisualStudio2013Theme(), |
|
380 |
ModalBackground = new SolidColorBrush { Color = Colors.Black, Opacity = 0.6 }, |
|
381 |
OkButtonContent = "Yes", |
|
382 |
CancelButtonContent = "No", |
|
383 |
Closed = delegate (object windowSender, WindowClosedEventArgs wc) |
|
384 |
{ |
|
385 |
if(wc.DialogResult == true) |
|
386 |
{ |
|
387 |
//선택된 어도너가 있을시 삭제가 되지 않음 |
|
388 |
SelectionSet.Instance.UnSelect(this); |
|
373 | 389 |
|
374 |
Button content = (sender as Button); |
|
375 |
MarkupInfoItem item = content.CommandParameter as MarkupInfoItem; |
|
390 |
Button content = (sender as Button);
|
|
391 |
MarkupInfoItem item = content.CommandParameter as MarkupInfoItem;
|
|
376 | 392 |
|
377 |
DeleteItem(item); |
|
378 |
} |
|
393 |
DeleteItem(item); |
|
394 |
} |
|
395 |
} |
|
396 |
}; |
|
397 |
RadWindow.Confirm(parameters); |
|
379 | 398 |
} |
380 | 399 |
|
381 | 400 |
System.Windows.Media.Animation.DoubleAnimation da = new System.Windows.Media.Animation.DoubleAnimation(); |
내보내기 Unified diff