Another question, same app.
I have a button that, "onClick", opens the native AutoCAD "Group:" dialog box using a static method.
private void button6_Click(object sender, EventArgs e)
{
if (Autodesk.AutoCAD.ApplicationServices.Application.IsQuiescent)
{
base.Enabled = false;
OpenGroupCommandDialog.CallGroupCommand();
}
}
As you can see, I am using base.Enabled = false;
this is to prevent the user from interaction with the modeless form,
until they do whatever with the group command dialog.
In my CommandEnded, CommandCancelled and CommandFailed handlers,
I use base.Enabled = true; to bring the modeless form back to life.
void document_CommandEnded(object sender, CommandEventArgs e)
{
base.Enabled = true;
}
For some reason, if I open the group dialog, then just rename a group and hit okay,
the group dialog closes but the main modeless form remains dead.
Is there a better way to prevent working with the modeless form
while another dialog is up or if another command is running?
TIA
Bill