Beispiel #1
0
 private void OpenExtensionsDialogCommand_Execute()
 {
     using (var addinsView = new AddinsView())
     {
         var dialog = new AddinsPresenter(addinsView, _model.GetService <Engine.IExtensionService>());
         dialog.Show();
     }
 }
Beispiel #2
0
        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;
            }
        }
Beispiel #3
0
 private void OpenExtensionsDialogCommand_Execute()
 {
     using(var addinsView = new AddinsView())
     {
         var dialog = new AddinsPresenter(addinsView, _model.GetService<Engine.IExtensionService>());
         dialog.Show();
     }
 }