Esempio n. 1
0
 public BlendServer(IServiceProvider serviceProvider)
 {
     this.windowService      = (Microsoft.Expression.Framework.UserInterface.IWindowService)serviceProvider.GetService(typeof(Microsoft.Expression.Framework.UserInterface.IWindowService));
     this.projectManager     = (IProjectManager)serviceProvider.GetService(typeof(IProjectManager));
     this.commandLineService = (ICommandLineService)serviceProvider.GetService(typeof(ICommandLineService));
     this.defaultWait        = new TimeSpan(0, 0, 3);
 }
Esempio n. 2
0
        private static bool ShowDialogWithMainWindowDisabled(IServices services, ILicensingDialogQuery dialog)
        {
            dialog.InitializeDialog();
            Microsoft.Expression.Framework.UserInterface.IWindowService service = services.GetService <Microsoft.Expression.Framework.UserInterface.IWindowService>();
            service.IsEnabled = false;
            bool?nullable = dialog.ShowDialog();

            service.IsEnabled = true;
            if (nullable.HasValue)
            {
                return(nullable.Value);
            }
            return(false);
        }
Esempio n. 3
0
 public ActiproEditor(ActiproSoftware.SyntaxEditor.Document document, CodeOptionsModel codeOptionsModel, IMessageDisplayService messageDisplayService, IViewService viewService, ICodeProject codeProject, Microsoft.Expression.Framework.UserInterface.IWindowService windowService)
 {
     this.editor = new SyntaxEditor();
     this.InitializeEditor(document, codeProject);
     this.host            = new WindowsFormsHost();
     this.host.Background = (System.Windows.Media.Brush)System.Windows.Media.Brushes.White;
     this.editor.IndicatorMarginVisible = false;
     this.host.Child       = (Control)this.editor;
     this.codeOptionsModel = codeOptionsModel;
     this.codeOptionsModel.PropertyChanged           += new PropertyChangedEventHandler(this.Actipro_PropertyChanged);
     this.editorSpecificOptionsModel                  = this.codeOptionsModel.GetEditorModel(EditorType.CodeEditor);
     this.editorSpecificOptionsModel.PropertyChanged += new PropertyChangedEventHandler(this.Actipro_PropertyChanged);
     this.messageDisplayService       = messageDisplayService;
     this.viewService                 = viewService;
     this.windowService               = windowService;
     this.windowService.ThemeChanged += new EventHandler(this.WindowService_ThemeChanged);
     this.UpdateOptions();
 }