private void OpenExtensionsDialogCommand_Execute() { using (var addinsView = new AddinsView()) { var dialog = new AddinsPresenter(addinsView, _model.GetService <Engine.IExtensionService>()); dialog.Show(); } }
public static void AddinManager() { try { if (addinsView == null) { var addinsVM = new AddinsVM(); addinsView = new AddinsView(addinsVM); } Autodesk.AutoCAD.ApplicationServices.Core.Application.ShowModelessWindow(addinsView); } catch (OperationCanceledException) { // Отменено пользователем } catch (Exception ex) { Log.Error(ex); throw; } }
private void OpenExtensionsDialogCommand_Execute() { using(var addinsView = new AddinsView()) { var dialog = new AddinsPresenter(addinsView, _model.GetService<Engine.IExtensionService>()); dialog.Show(); } }