N
Nicolas De Irisarri
Hello.
I'm trying to display an alert when a user deletes a specific shape. I
read that QueryCancelSelectionDelete could serve for this, but the
application never triggers that event. This is the code in c# I'm
working on:
//this line goes in the OnConnection method of the Add-in:
document.QueryCancelSelectionDelete += new
Visio.EDocument_QueryCancelSelectionDeleteEventHandler
(this.queryCancelSelectionDelete);
(....)
private void queryCancelSelectionDelete(Visio.Selection sel, out bool
salida)
{
salida = true;
if (sel.Count != 1 )
return;
if (MessageBox.Show ("are you sure?", MessageBoxButtons.OKCancel )
== DialogResult.Cancel)
return;
else
salida = false;
return;
}
I tried to debug it, and it doesn't stop on the event handler....
any clues??
I'm trying to display an alert when a user deletes a specific shape. I
read that QueryCancelSelectionDelete could serve for this, but the
application never triggers that event. This is the code in c# I'm
working on:
//this line goes in the OnConnection method of the Add-in:
document.QueryCancelSelectionDelete += new
Visio.EDocument_QueryCancelSelectionDeleteEventHandler
(this.queryCancelSelectionDelete);
(....)
private void queryCancelSelectionDelete(Visio.Selection sel, out bool
salida)
{
salida = true;
if (sel.Count != 1 )
return;
if (MessageBox.Show ("are you sure?", MessageBoxButtons.OKCancel )
== DialogResult.Cancel)
return;
else
salida = false;
return;
}
I tried to debug it, and it doesn't stop on the event handler....
any clues??