forms - Shut down C# dll in AutoCAD -
i have written c# plugin autocad, dll forms , user inputs , on. possible close dll?
i tried:
application.exit(); but close whole autocad application, thats not want.
it not help closing form because have multiple forms not globally accessable.
i want add together code demonstrate perchance want close plugin:
// first class [commandmethod("pluginname"] public static void startplugin() { loginwindow login = new loginwindow(); dialogresult loginresult= login.showdialog(); if (loginresult== dialogresult.ok) { startinventorypropertiesselection(); } } // sec class public partial class loginwindow : form { public loginwindow() { initializecomponent(); // cancel here plugin.quit // ==> looking } } c# forms dll exit
No comments:
Post a Comment