C# Class XSharp.Project.WPF.XSharpEventBindingProvider

Inheritance: EventBindingProvider
Mostra file Open project: X-Sharp/XSharpPublic

Private Properties

Property Type Description
GetCodeDomForXSharpFile System.CodeDom.CodeTypeDeclaration
GetDocDataAdapterForXSharpFile CodeDomDocDataAdapter
GetHandlersFromActiveFile List
RetrieveFullTypeName string
XSharpEventBindingProvider System

Public Methods

Method Description
AddEventHandler ( EventDescription eventDescription, string objectName, string methodName ) : bool
AllowClassNameForMethodName ( ) : bool
AppendStatements ( EventDescription eventDescription, string methodName, string statements, int relativePosition ) : void
CreateMethod ( EventDescription eventDescription, string methodName, string initialStatements ) : bool
CreateUniqueMethodName ( string objectName, EventDescription eventDescription ) : string
GetCompatibleMethods ( EventDescription eventDescription ) : IEnumerable
GetMethodHandlers ( EventDescription eventDescription, string objectName ) : IEnumerable
IsExistingMethodName ( EventDescription eventDescription, string methodName ) : bool
RemoveEventHandler ( EventDescription eventDescription, string objectName, string methodName ) : bool
RemoveHandlesForName ( string elementName ) : bool
RemoveMethod ( EventDescription eventDescription, string methodName ) : bool
SetClassName ( string className ) : void
ShowMethod ( EventDescription eventDescription, string methodName ) : bool
ValidateMethodName ( EventDescription eventDescription, string methodName ) : void

Private Methods

Method Description
GetCodeDomForXSharpFile ( ) : CodeTypeDeclaration

This method will get the CodeTypeDeclaration corresponding to the active XAML file in the designer.

GetDocDataAdapterForXSharpFile ( ) : CodeDomDocDataAdapter

This method will get the CodeDomDocDataAdapter corresponding to the active XAML file in the designer.

GetHandlersFromActiveFile ( string methodName ) : List
RetrieveFullTypeName ( string typeName ) : string
XSharpEventBindingProvider ( FileNode xsFile ) : System

Method Details

AddEventHandler() public method

public AddEventHandler ( EventDescription eventDescription, string objectName, string methodName ) : bool
eventDescription EventDescription
objectName string
methodName string
return bool

AllowClassNameForMethodName() public method

public AllowClassNameForMethodName ( ) : bool
return bool

AppendStatements() public method

public AppendStatements ( EventDescription eventDescription, string methodName, string statements, int relativePosition ) : void
eventDescription EventDescription
methodName string
statements string
relativePosition int
return void

CreateMethod() public method

public CreateMethod ( EventDescription eventDescription, string methodName, string initialStatements ) : bool
eventDescription EventDescription
methodName string
initialStatements string
return bool

CreateUniqueMethodName() public method

public CreateUniqueMethodName ( string objectName, EventDescription eventDescription ) : string
objectName string
eventDescription EventDescription
return string

GetCompatibleMethods() public method

public GetCompatibleMethods ( EventDescription eventDescription ) : IEnumerable
eventDescription EventDescription
return IEnumerable

GetMethodHandlers() public method

public GetMethodHandlers ( EventDescription eventDescription, string objectName ) : IEnumerable
eventDescription EventDescription
objectName string
return IEnumerable

IsExistingMethodName() public method

public IsExistingMethodName ( EventDescription eventDescription, string methodName ) : bool
eventDescription EventDescription
methodName string
return bool

RemoveEventHandler() public method

public RemoveEventHandler ( EventDescription eventDescription, string objectName, string methodName ) : bool
eventDescription EventDescription
objectName string
methodName string
return bool

RemoveHandlesForName() public method

public RemoveHandlesForName ( string elementName ) : bool
elementName string
return bool

RemoveMethod() public method

public RemoveMethod ( EventDescription eventDescription, string methodName ) : bool
eventDescription EventDescription
methodName string
return bool

SetClassName() public method

public SetClassName ( string className ) : void
className string
return void

ShowMethod() public method

public ShowMethod ( EventDescription eventDescription, string methodName ) : bool
eventDescription EventDescription
methodName string
return bool

ValidateMethodName() public method

public ValidateMethodName ( EventDescription eventDescription, string methodName ) : void
eventDescription EventDescription
methodName string
return void