Esempio n. 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);
 }
Esempio n. 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;
        }
Esempio n. 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);
 }
Esempio n. 4
0
 /// <summary>
 /// Update context
 /// </summary>
 /// <param name="assemblies"></param>
 /// <param name="importedNamespaces"></param>
 public void UpdateContext(AssemblyContextControlItem assemblies, ImportedNamespaceContextItem importedNamespaces)
 {
 }