Click or drag to resize

ReviewManagerOnReviewDeletingEvent Event

Review Deleting Event

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public event ReviewDeletingEventHandler OnReviewDeletingEvent

Value

Type: ReviewDeletingEventHandler
Examples
C#
// 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;
}
See Also