Пример #1
0
 /// <summary>
 /// Get an instance of IExpressionEditorInstance
 /// </summary>
 /// <param name="assemblies"></param>
 /// <param name="importedNamespaces"></param>
 /// <param name="variables"></param>
 /// <param name="text"></param>
 /// <param name="expressionType"></param>
 /// <param name="initialSize"></param>
 /// <returns></returns>
 public IExpressionEditorInstance CreateExpressionEditor(AssemblyContextControlItem assemblies, ImportedNamespaceContextItem importedNamespaces, List<System.Activities.Presentation.Model.ModelItem> variables, string text, Type expressionType, System.Windows.Size initialSize)
 {
     return CreateExpressionEditorPrivate(assemblies, importedNamespaces, variables, text, expressionType,
                                          initialSize);
 }
Пример #2
0
        private IExpressionEditorInstance CreateExpressionEditorPrivate(AssemblyContextControlItem assemblies, ImportedNamespaceContextItem importedNamespaces, List<ModelItem> modelItems, string text, Type expressionType, Size initialSize)
        {
            var instance = new ExpressionEditorInstance();
            instance.Guid = Guid.NewGuid();
            instance.Text = text;
            instance.HighlightWords = EditorKeyWord;
            instance.ExpressionType = expressionType;
            instance.IntellisenseNodeList = CreateUpdatedIntellisense(modelItems);
            instance.LostAggregateFocus += LostFocus;

            editorInstances.Add(instance.Guid.ToString(), instance);
            return instance;
        }
Пример #3
0
 /// <summary>
 /// Get an instance of IExpressionEditorInstance
 /// </summary>
 /// <param name="assemblies"></param>
 /// <param name="importedNamespaces"></param>
 /// <param name="variables"></param>
 /// <param name="text"></param>
 /// <returns></returns>
 public IExpressionEditorInstance CreateExpressionEditor(AssemblyContextControlItem assemblies, ImportedNamespaceContextItem importedNamespaces, List<System.Activities.Presentation.Model.ModelItem> variables, string text)
 {
     return CreateExpressionEditorPrivate(assemblies, importedNamespaces, variables, text, null, Size.Empty);
 }
Пример #4
0
 /// <summary>
 /// Update context
 /// </summary>
 /// <param name="assemblies"></param>
 /// <param name="importedNamespaces"></param>
 public void UpdateContext(AssemblyContextControlItem assemblies, ImportedNamespaceContextItem importedNamespaces)
 {
 }