示例#1
0
        private void InitializeExtensionsManagement()
        {
            Manager.Instance.ShowMessage            += DesktopAlertAwareExtensionOnShowMessage;
            Manager.Instance.ShowWarning            += DesktopAlertAwareExtensionOnShowWarning;
            Manager.Instance.PanelForEntityRequired += CreatePanel;

            var config = ExtensionsConfigurationManager.GetConfigurationSection();

            _executionMode = config.Mode;
            Manager.Instance.LoadExtensions(_executionMode, ExceptExtension);

            HandleExtensionInitializers();

            DiagramNameUpdater();
            var actions = Manager.Instance.GetExtensions <IContextAwareAction>();

            ItemEditor.InitializeContextMenu(actions);
        }