ReviewManagerOnReviewDeletingEvent Event |
Namespace: VIZCore3D.NET.Manager
public event ReviewDeletingEventHandler OnReviewDeletingEvent
// VIZCore3D.NET Control private VIZCore3D.NET.VIZCore3DControl vizcore; /// <summary> /// 이벤트 등록 /// </summary> private void InitializeVIZCore3DEvent() { vizcore3d.Review.OnReviewDeletingEvent += Review_OnReviewDeletingEvent; } private void Review_OnReviewDeletingEvent(object sender, Event.EventManager.ReviewDeletingEventArgs e) { Data.ReviewItem item = vizcore3d.Review.GetItem(e.ReviewID); System.Windows.Forms.DialogResult result = System.Windows.Forms.MessageBox.Show("Are you sure you want to delete?\n : " + item.Title, "Review Delete - " + item.Kind.ToString(), System.Windows.Forms.MessageBoxButtons.OKCancel); if (result == System.Windows.Forms.DialogResult.Cancel) e.Cancel = true; }